# NOTE: This hash is pinned to avoid version and environment differences.
# You don't need to read this file in order to solve the challenge
FROM python:3.12.7-slim-bookworm@sha256:60d9996b6a8a3689d36db740b49f4327be3be09a21122bd02fb8895abb38b50d

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -yqq socat
RUN pip install pycryptodome
COPY server.py ./
USER nobody:nogroup
CMD ["socat", "-T30", "tcp-listen:9999,fork,reuseaddr", "exec:'python server.py'"]
