# 使用 Fedora 42 作为基础镜像
FROM fedora:42

RUN dnf -y --disablerepo=updates-testing update && \
    dnf -y install socat && \
    dnf clean all

RUN useradd -m ctf
WORKDIR /home/ctf/

COPY ./bin/ /home/ctf/
COPY fake-flag ./flag
COPY ./init.sh /init.sh
RUN chown -R root:ctf /home/ctf && \
    chmod -R 750 /home/ctf 

CMD ["/init.sh"]
 
EXPOSE 70