forked from OWASP/wrongsecrets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_webdesktop
29 lines (23 loc) · 1.08 KB
/
Dockerfile_webdesktop
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
29
FROM lscr.io/linuxserver/webtop:4.16-r0-ls72
LABEL NAME="OWASP WrongSecrets Web Desktop" MAINTAINER="Jeroen Willemsen"
RUN \
echo "*** install kubectl ***" && \
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" &&\
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl &&\
rm kubectl
RUN \
echo "**** install packages ****" && \
apk add --no-cache shadow keepassxc radare2 aws-cli geany git && \
echo "**** adding abc user to root for Docker ****" && \
usermod -aG root abc && \
touch /var/run/docker.sock && \
chown abc:abc /var/run/docker.sock && \
echo "**** cleanup ****" && \
rm -rf /tmp/*
WORKDIR /config/Desktop
COPY src/main/resources/executables/*linux* /config/Desktop/wrongsecrets/
COPY src/test/resources/alibabacreds.kdbx /var/tmp/helpers/
COPY src/test/resources/alibabacreds.kdbx /var/tmp/wrongsecrets/
COPY wrongsecret-desktop-resources/welcome.md /var/tmp/wrongsecrets/
RUN sudo chown abc /var/tmp/wrongsecrets
COPY wrongsecret-desktop-resources/startwm.sh /defaults/startwm.sh