# NOTE: This hash is pinned to avoid version and environment differences.
FROM ubuntu:26.04@sha256:7b202b0e2e0028c6250f5fcf41d04df492d145a1654c6995a6553f0c1f6f1960
RUN apt-get update && apt-get install -yq socat

WORKDIR /app
COPY chal ./

# Sets UID and GID
USER 404:404

CMD ["socat", "-T30", "tcp-listen:1337,fork,reuseaddr", "exec:'./chal',stderr"]
