[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request sullo#614 from felipenazario/patch-2
Browse files Browse the repository at this point in the history
Small footprint.
  • Loading branch information
sullo committed Jul 4, 2019
2 parents 9b3fcb5 + bacac58 commit 9dbf5f2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,23 @@ LABEL version="2.1.6" \
docker_run_basic="docker run --rm sullo/nikto:2.1.6 -h http://www.example.com" \
docker_run_advanced="docker run --rm -v $(pwd):/tmp sullo/nikto:2.1.6 -h http://www.example.com -o /tmp/out.json"

COPY [".", "/nikto"]
COPY ["program/", "/nikto"]

ENV PATH=${PATH}:/nikto/program
ENV PATH=${PATH}:/nikto

RUN echo 'Selecting packages to Nikto.' \
&& apk update \
&& apk add --no-cache --virtual .build-deps \
make \
perl \
perl-net-ssleay \
&& echo 'Cleaning cache from APK.' \
&& rm -rf /var/cache/apk/* \
&& echo 'Creating the nikto group.' \
&& addgroup nikto \
&& echo 'Creating the user nikto.' \
&& adduser -G nikto -g "Nikto user" -s /bin/sh -D nikto \
&& echo 'Changing the permissions.' \
&& chown -R nikto /nikto \
&& adduser -G nikto -g "Nikto user" -s /bin/sh -D nikto \
&& echo 'Changing the ownership.' \
&& chown -R nikto.nikto /nikto \
&& echo 'Creating a random password for root.' \
&& export RANDOM_PASSWORD=`tr -dc A-Za-z0-9 < /dev/urandom | head -c44` \
&& echo "root:$RANDOM_PASSWORD" | chpasswd \
Expand Down

0 comments on commit 9dbf5f2

Please sign in to comment.