Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
CBCicada authored Mar 14, 2024
1 parent b6686da commit 6312efc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chals/crypto/diagonal/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM ubuntu:20.04

RUN apt-get update && apt-get install -y socat python3

RUN pip3 install numpy
RUN adduser chal

RUN mkdir -p /chal
WORKDIR /chal

COPY chal.py flag.txt ./
RUN chmod 555 chal.py
COPY server.py ./
RUN chmod 555 server.py
USER chal

CMD socat -T60 TCP-LISTEN:1337,fork,reuseaddr EXEC:"python3 -u chal.py",stderr
CMD socat -T60 TCP-LISTEN:1337,fork,reuseaddr EXEC:"python3 -u server.py",stderr

0 comments on commit 6312efc

Please sign in to comment.