Files
ctf/2026/kalmar/misc/git-hoarder/handout/Dockerfile
2026-04-15 01:05:54 +02:00

13 lines
276 B
Docker

FROM archlinux:latest
RUN pacman --noconfirm -Sy socat python3 git
RUN mkdir /app
COPY clone.py /app/clone.py
COPY ./flag.txt /app/flag.txt
RUN useradd -m -k user:user user
USER user
WORKDIR /tmp
CMD socat TCP-LISTEN:1337,reuseaddr,fork EXEC:"python3 /app/clone.py",stderr