Skip to content

Commit 15a5f45

Browse files
committed
Change Nikto Installation
1 parent 90f1213 commit 15a5f45

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scanners/nikto/scanner/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
FROM alpine:3.14 as build
66
ARG scannerVersion
77
RUN apk add git
8-
RUN git clone https://github.com/sullo/nikto.git /nikto \
9-
&& cd /nikto \
10-
&& git switch "nikto-$scannerVersion"
8+
RUN git clone --depth 1 --branch "nikto-$scannerVersion" https://github.com/sullo/nikto.git /nikto
119

1210
FROM alpine:3.14
1311
ENV PATH=${PATH}:/nikto

0 commit comments

Comments
 (0)