From cb203349d7ca815c9350eb53f4bd2e0b0ee659fa Mon Sep 17 00:00:00 2001 From: Caleb Stewart Date: Mon, 14 Jun 2021 09:01:19 -0400 Subject: [PATCH] Fixed Dockerfile - Added rust requirements for cryptography. - Removed installing requirements.txt as it's no longer needed. - Added a call to `--download-plugins` to ensure plugins are bundled automatically. --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ea55864..894a533 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,9 @@ RUN set -eux \ linux-headers \ openssl-dev \ python3 \ - python3-dev + python3-dev \ + musl-dev \ + cargo # Install pip RUN set -eux \ @@ -16,7 +18,7 @@ RUN set -eux \ # Ensure pip is up to date RUN set -eux \ - && python3 -m pip install -U pip setuptools wheel + && python3 -m pip install -U pip setuptools wheel setuptools_rust # Copy pwncat source COPY . /pwncat @@ -24,7 +26,6 @@ COPY . /pwncat # Setup pwncat RUN set -eux \ && cd /pwncat \ - && python3 -m pip install -r requirements.txt \ && python3 setup.py install # Cleanup @@ -45,6 +46,8 @@ RUN set -eux \ COPY --from=builder /usr/bin/pwncat /usr/bin/pwncat COPY --from=builder /usr/lib/python3.8 /usr/lib/python3.8 +RUN python3 -m pwncat --download-plugins + # Set working directory WORKDIR /work ENTRYPOINT ["/usr/bin/pwncat"]