zeus 3 years ago
parent
commit
436647251c
  1. 15
      install/usr/share/swarmlab.io/sec/swarmlab-sec

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

@ -139,10 +139,9 @@ if [ -d "$Wdir/project" ]; then
echo "" echo ""
echo ">>> Load Origin " echo ">>> Load Origin "
cat << EOF > $Wdir/Dockerfile cat << EOF > $Wdir/Dockerfile
FROM $IMAGE_origin FROM $IMAGE_origin AS builder
# #
ARG DEF_ALPINE_VERSION=3.11 ARG DEF_ALPINE_VERSION=$IMAGE_origin
FROM alpine:\${DEF_ALPINE_VERSION} AS builder
ARG DEF_USERNAME=root ARG DEF_USERNAME=root
USER \${DEF_USERNAME} USER \${DEF_USERNAME}
WORKDIR /tmp/build/ WORKDIR /tmp/build/
@ -154,7 +153,7 @@ RUN curl -fL https://downloads.volatilityfoundation.org/volatility3/symbols/wind
RUN apk --purge del \ RUN apk --purge del \
.build .build
FROM alpine:\${DEF_ALPINE_VERSION} FROM \${DEF_ALPINE_VERSION}
ARG DEF_USERNAME=root ARG DEF_USERNAME=root
ARG DEF_INSTALL_PREFIX=/usr ARG DEF_INSTALL_PREFIX=/usr
@ -302,10 +301,9 @@ if [ "$Wdir" == "$HOME" ]; then
then then
echo ">>> Load Origin " echo ">>> Load Origin "
cat << EOF > $Wdir/Dockerfile cat << EOF > $Wdir/Dockerfile
FROM $IMAGE_origin FROM $IMAGE_origin AS builder
# #
ARG DEF_ALPINE_VERSION=3.11 ARG DEF_ALPINE_VERSION=$IMAGE_origin
FROM alpine:\${DEF_ALPINE_VERSION} AS builder
ARG DEF_USERNAME=root ARG DEF_USERNAME=root
USER \${DEF_USERNAME} USER \${DEF_USERNAME}
WORKDIR /tmp/build/ WORKDIR /tmp/build/
@ -317,7 +315,8 @@ RUN curl -fL https://downloads.volatilityfoundation.org/volatility3/symbols/wind
RUN apk --purge del \ RUN apk --purge del \
.build .build
FROM alpine:\${DEF_ALPINE_VERSION} FROM \${DEF_ALPINE_VERSION}
ARG DEF_USERNAME=root ARG DEF_USERNAME=root
ARG DEF_INSTALL_PREFIX=/usr ARG DEF_INSTALL_PREFIX=/usr

Loading…
Cancel
Save