# NOTE: This hash is pinned to avoid version and environment differences.
FROM python:3.14-trixie@sha256:9647bab404235fee82aa7f30d5f73e9f28c64c608442e63b0806c6bdd8b33528
RUN apt-get update && apt-get install -yq socat

WORKDIR /app
COPY --chmod=444 chal.py .

USER nobody:nogroup
CMD ["socat", "-T30", "tcp-listen:1337,fork,reuseaddr", "exec:'python chal.py',stderr"]
