forked from OWASP/wrongsecrets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_webdesktopk8s
36 lines (28 loc) · 1.32 KB
/
Dockerfile_webdesktopk8s
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
30
31
32
33
34
35
36
FROM lscr.io/linuxserver/webtop:latest
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/*
RUN echo "**** clone wrongsecrets.git for webtop in k8s ****" && \
mkdir /var/tmp/wrongsecrets && \
cd /var/tmp/wrongsecrets && \
git clone https://github.com/OWASP/wrongsecrets.git
WORKDIR /config/Desktop
COPY src/main/resources/executables/ /var/tmp/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
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