write-ups-challenges-2024-2025/tic-tac-toes/Dockerfile
2024-11-25 22:33:42 +01:00

19 lines
400 B
Docker

FROM debian:bullseye
RUN apt update -y && apt install -y python3 build-essential
RUN useradd -m ctf
WORKDIR /app
COPY src /app/src
COPY Makefile /app/Makefile
COPY spawner.py /app/spawner.py
ENV FLAG="\"\\\"IGCTF{W3ll_y0u_st1ll_l0st_BuT_at_l3ast_yoU_g0t_th3_fl4g}\\\"\""
RUN make clean
RUN make
CMD ["python3", "spawner.py", "--host", "0.0.0.0", "--port", "3005", "./tic-tac-toes"]
EXPOSE 3005