forked from sullo/nikto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (21 loc) · 902 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM alpine:3.12
LABEL version="2.1.6" \
author="Author Paul Sec (https://github.com/PaulSec), Nikto User https://github.com/drwetter" \
docker_build="docker build -t sullo/nikto: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 ["program/", "/nikto"]
ENV PATH=${PATH}:/nikto
RUN echo 'Installing packages for Nikto.' \
&& apk add --update --no-cache --virtual .build-deps \
perl \
perl-net-ssleay \
&& echo 'Creating the nikto group.' \
&& addgroup nikto \
&& echo 'Creating the nikto user.' \
&& adduser -G nikto -g "Nikto user" -s /bin/sh -D nikto \
&& echo 'Changing the ownership.' \
&& chown -R nikto.nikto /nikto \
&& echo 'Finishing image.'
USER nikto
ENTRYPOINT ["nikto.pl"]