From 4afa2082015e2642df8cb78d73fd6acc6ac8e9d7 Mon Sep 17 00:00:00 2001 From: Caleb Stewart Date: Wed, 16 Jun 2021 17:08:01 -0400 Subject: [PATCH] Pinned alpine to 3.13.5 --- Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b99503..11ef2bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:latest as builder +FROM alpine:3.13.5 as builder # Install python3 and development files RUN set -eux \ @@ -12,17 +12,14 @@ RUN set -eux \ musl-dev \ cargo -# Install pip -RUN set -eux \ - && python3 -m ensurepip - # Copy pwncat source COPY . /pwncat # Setup virtual environment RUN set -eux \ && python3 -m venv /opt/pwncat \ - && /opt/pwncat/bin/python3 -m pip install -U pip setuptools wheel setuptools_rust + && /opt/pwncat/bin/python -m ensurepip \ + && /opt/pwncat/bin/python -m pip install -U pip setuptools wheel setuptools_rust # Setup pwncat RUN set -eux \ @@ -35,7 +32,7 @@ RUN set -eux \ && find /opt/pwncat/lib -type d -name '__pycache__' -print0 | xargs -0 -n1 rm -rf || true -FROM alpine:latest as final +FROM alpine:3.13.5 as final RUN set -eux \ && apk add --no-cache \