ctf-resources/htb/hacktheboo2024/crypto/[Very Easy] brevi moduli/Dockerfile

19 lines
369 B
Docker
Raw Normal View History

2024-10-23 11:10:43 +02:00
FROM python:3.9-slim-buster
RUN apt update
RUN apt install -y socat
RUN pip install pycryptodome
# Add application
WORKDIR /challenge
COPY challenge .
# Expose the port
EXPOSE 1337
# Switch to use a non-root user from here on
USER nobody
# Start the python application
CMD ["socat", "-dd", "TCP-LISTEN:1337,reuseaddr,fork", "exec:python -u /challenge/server.py"]