forked from sullo/nikto
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 942 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (23 loc) · 942 Bytes
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
28
FROM alpine:3.23.3
LABEL version="2.6.1" \
author="Author Paul Sec (https://github.com/PaulSec), Nikto User https://github.com/drwetter, Sullo" \
docker_build="docker build -t hackllc/nikto:2.6.1 ." \
docker_run_basic="docker run --rm hackllc/nikto:2.6.1 -h http://www.example.com" \
docker_run_advanced="docker run --rm -v $(pwd):/tmp hackllc/nikto:2.6.1 -h http://www.example.com -o /tmp/out.json"
RUN echo 'Installing packages for Nikto.' && \
apk add --no-cache \
perl \
perl-net-ssleay \
perl-json \
perl-io-socket-ssl \
perl-xml-writer \
perl-mime-base64 \
perl-xml-libxml
RUN echo 'Creating the nikto group.' && \
addgroup -S nikto && \
echo 'Creating the nikto user.' && \
adduser -S -G nikto -g "Nikto user" -s /bin/sh nikto
ENV PATH=${PATH}:/opt/nikto
USER nikto
COPY --chown=nikto:nikto ["program/", "/opt/nikto"]
ENTRYPOINT ["/opt/nikto/nikto.pl"]