Browse Source

dvwa

master
zeus 3 years ago
parent
commit
075728b83a
  1. 12
      install/usr/share/swarmlab.io/sec/swarmlab-sec

12
install/usr/share/swarmlab.io/sec/swarmlab-sec

@ -141,7 +141,6 @@ if [ -d "$Wdir/project" ]; then
cat << EOF > $Wdir/Dockerfile cat << EOF > $Wdir/Dockerfile
FROM $IMAGE_origin AS builder FROM $IMAGE_origin AS builder
# #
ARG DEF_ALPINE_VERSION=$IMAGE_origin
ARG DEF_USERNAME=root ARG DEF_USERNAME=root
USER \${DEF_USERNAME} USER \${DEF_USERNAME}
WORKDIR /tmp/build/ WORKDIR /tmp/build/
@ -150,10 +149,7 @@ WORKDIR /tmp/build/
RUN curl -fL https://downloads.volatilityfoundation.org/volatility3/symbols/windows.zip -o windows.zip && \ RUN curl -fL https://downloads.volatilityfoundation.org/volatility3/symbols/windows.zip -o windows.zip && \
unzip windows.zip unzip windows.zip
RUN apk --purge del \ FROM $IMAGE_origin
.build
FROM \${DEF_ALPINE_VERSION}
ARG DEF_USERNAME=root ARG DEF_USERNAME=root
ARG DEF_INSTALL_PREFIX=/usr ARG DEF_INSTALL_PREFIX=/usr
@ -303,7 +299,6 @@ if [ "$Wdir" == "$HOME" ]; then
cat << EOF > $Wdir/Dockerfile cat << EOF > $Wdir/Dockerfile
FROM $IMAGE_origin AS builder FROM $IMAGE_origin AS builder
# #
ARG DEF_ALPINE_VERSION=$IMAGE_origin
ARG DEF_USERNAME=root ARG DEF_USERNAME=root
USER \${DEF_USERNAME} USER \${DEF_USERNAME}
WORKDIR /tmp/build/ WORKDIR /tmp/build/
@ -312,10 +307,7 @@ WORKDIR /tmp/build/
RUN curl -fL https://downloads.volatilityfoundation.org/volatility3/symbols/windows.zip -o windows.zip && \ RUN curl -fL https://downloads.volatilityfoundation.org/volatility3/symbols/windows.zip -o windows.zip && \
unzip windows.zip unzip windows.zip
RUN apk --purge del \ FROM $IMAGE_origin
.build
FROM \${DEF_ALPINE_VERSION}
ARG DEF_USERNAME=root ARG DEF_USERNAME=root

Loading…
Cancel
Save