19 lines
400 B
Docker
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 |