FROM ubuntu:24.10
WORKDIR /chall
RUN apt update
RUN apt install unzip
RUN mkdir -p resources/files
RUN useradd -mrU sec_chall
ENV LD_LIBRARY_PATH=/chall/lib
COPY ./serv /bin/.
COPY ./run_serv.sh /bin/.
COPY ./files/* ./resources/files/
COPY ./flag* /home/sec_chall/
RUN chown -R sec_chall /chall
RUN chmod 555 /bin/serv
RUN chmod 555 /bin/run_serv.sh
RUN chmod 444 /home/sec_chall/flag*
USER sec_chall
CMD ["run_serv.sh"]
