File tree 2 files changed +13
-13
lines changed
2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change
1
+ .git
2
+ .gitignore
3
+ .gitattributes
4
+ .editorconfig
5
+ .github
6
+ COPYING
7
+ devdocs
8
+ documentation
9
+ README.md
Original file line number Diff line number Diff line change 1
- FROM alpine:3.10.0
1
+ FROM alpine:3.12
2
2
3
3
LABEL version="2.1.6" \
4
4
author="Author Paul Sec (https://github.com/PaulSec), Nikto User https://github.com/drwetter" \
@@ -10,25 +10,16 @@ COPY ["program/", "/nikto"]
10
10
11
11
ENV PATH=${PATH}:/nikto
12
12
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 \
16
15
perl \
17
16
perl-net-ssleay \
18
- && echo 'Cleaning cache from APK.' \
19
- && rm -rf /var/cache/apk/* \
20
17
&& echo 'Creating the nikto group.' \
21
18
&& addgroup nikto \
22
- && echo 'Creating the user nikto.' \
19
+ && echo 'Creating the nikto user .' \
23
20
&& adduser -G nikto -g "Nikto user" -s /bin/sh -D nikto \
24
21
&& echo 'Changing the ownership.' \
25
22
&& 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 \
32
23
&& echo 'Finishing image.'
33
24
34
25
USER nikto
You can’t perform that action at this time.
0 commit comments