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

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

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