1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-24 01:25:37 +01:00

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.
This commit is contained in:
Caleb Stewart 2021-06-14 09:01:19 -04:00
parent b861ab1ed3
commit cb203349d7

View File

@ -8,7 +8,9 @@ RUN set -eux \
linux-headers \ linux-headers \
openssl-dev \ openssl-dev \
python3 \ python3 \
python3-dev python3-dev \
musl-dev \
cargo
# Install pip # Install pip
RUN set -eux \ RUN set -eux \
@ -16,7 +18,7 @@ RUN set -eux \
# Ensure pip is up to date # Ensure pip is up to date
RUN set -eux \ 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 source
COPY . /pwncat COPY . /pwncat
@ -24,7 +26,6 @@ COPY . /pwncat
# Setup pwncat # Setup pwncat
RUN set -eux \ RUN set -eux \
&& cd /pwncat \ && cd /pwncat \
&& python3 -m pip install -r requirements.txt \
&& python3 setup.py install && python3 setup.py install
# Cleanup # Cleanup
@ -45,6 +46,8 @@ RUN set -eux \
COPY --from=builder /usr/bin/pwncat /usr/bin/pwncat COPY --from=builder /usr/bin/pwncat /usr/bin/pwncat
COPY --from=builder /usr/lib/python3.8 /usr/lib/python3.8 COPY --from=builder /usr/lib/python3.8 /usr/lib/python3.8
RUN python3 -m pwncat --download-plugins
# Set working directory # Set working directory
WORKDIR /work WORKDIR /work
ENTRYPOINT ["/usr/bin/pwncat"] ENTRYPOINT ["/usr/bin/pwncat"]