Skip to content

Commit

Permalink
Fixed Dockerfile
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
calebstewart committed Jun 14, 2021
1 parent b861ab1 commit cb20334
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@ RUN set -eux \
linux-headers \
openssl-dev \
python3 \
python3-dev
python3-dev \
musl-dev \
cargo

# Install pip
RUN set -eux \
&& python3 -m ensurepip

# 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

# Setup pwncat
RUN set -eux \
&& cd /pwncat \
&& python3 -m pip install -r requirements.txt \
&& python3 setup.py install

# Cleanup
Expand All @@ -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"]

0 comments on commit cb20334

Please sign in to comment.