Skip to content

Commit

Permalink
Run as non root user
Browse files Browse the repository at this point in the history
  • Loading branch information
kost committed Jul 18, 2015
1 parent 65d0554 commit b281b53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion alpine-nikto-git/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ RUN apk --update add perl openssl perl-net-ssleay git && rm -f /var/cache/apk/*
mkdir /opt && cd /opt && git clone https://github.com/sullo/nikto.git nikto-git && \
ln -sf /opt/nikto-git/program /opt/nikto && cd /opt/nikto && \
chmod 755 /opt/nikto/nikto.pl && /opt/nikto/nikto.pl -update && \
mkdir /work
mkdir /work && \
adduser -D -s /bin/sh user user && chown -R user /work

USER user

VOLUME /work
WORKDIR /opt/nikto
Expand Down

0 comments on commit b281b53

Please sign in to comment.