FROM debian:trixie-slim
WORKDIR /app/
RUN useradd ctf
COPY --chown=root:root --chmod=555 ./src/run.sh           ./
COPY --chown=root:root --chmod=444 ./src/flag.txt         ./
COPY --chown=root:root --chmod=755 ./wsd           ./
COPY --chown=root:root --chmod=755 ./libc-2.41.so  /lib/x86_64-linux-gnu/libc.so.6
COPY --chown=root:root --chmod=755 ./ld-2.41.so    /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
EXPOSE 4000
USER ctf
CMD ["/app/run.sh"]
