Skip to content

Commit 1f2e188

Browse files
committed
Merge branch 'master' of https://github.com/sullo/nikto
2 parents 15be723 + f6d99d0 commit 1f2e188

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.dockerignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.git
2+
.gitignore
3+
.gitattributes
4+
.editorconfig
5+
.github
6+
COPYING
7+
devdocs
8+
documentation
9+
README.md

Dockerfile

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.10.0
1+
FROM alpine:3.12
22

33
LABEL version="2.1.6" \
44
author="Author Paul Sec (https://github.com/PaulSec), Nikto User https://github.com/drwetter" \
@@ -10,25 +10,16 @@ COPY ["program/", "/nikto"]
1010

1111
ENV PATH=${PATH}:/nikto
1212

13-
RUN echo 'Selecting packages to Nikto.' \
14-
&& apk update \
15-
&& apk add --no-cache --virtual .build-deps \
13+
RUN echo 'Installing packages for Nikto.' \
14+
&& apk add --update --no-cache --virtual .build-deps \
1615
perl \
1716
perl-net-ssleay \
18-
&& echo 'Cleaning cache from APK.' \
19-
&& rm -rf /var/cache/apk/* \
2017
&& echo 'Creating the nikto group.' \
2118
&& addgroup nikto \
22-
&& echo 'Creating the user nikto.' \
19+
&& echo 'Creating the nikto user.' \
2320
&& adduser -G nikto -g "Nikto user" -s /bin/sh -D nikto \
2421
&& echo 'Changing the ownership.' \
2522
&& chown -R nikto.nikto /nikto \
26-
&& echo 'Creating a random password for root.' \
27-
&& export RANDOM_PASSWORD=`tr -dc A-Za-z0-9 < /dev/urandom | head -c44` \
28-
&& echo "root:$RANDOM_PASSWORD" | chpasswd \
29-
&& unset RANDOM_PASSWORD \
30-
&& echo 'Locking root account.' \
31-
&& passwd -l root \
3223
&& echo 'Finishing image.'
3324

3425
USER nikto

0 commit comments

Comments
 (0)