23 lines
485 B
Docker
23 lines
485 B
Docker
FROM ubuntu:22.04
|
|
|
|
|
|
RUN sed -i "s/archive.ubuntu.com/mirrors.cloud.tencent.com/g" /etc/apt/sources.list
|
|
RUN apt-get update && apt-get -y dist-upgrade && \
|
|
apt-get install -y lib32z1 xinetd python3
|
|
|
|
RUN pip install requests
|
|
WORKDIR /home/ctf
|
|
|
|
|
|
|
|
COPY ./ctf.xinetd /etc/xinetd.d/ctf
|
|
COPY ./init.sh /init.sh
|
|
RUN echo "Blocked by ctf_xinetd" > /etc/banner_fail
|
|
|
|
RUN chmod +x /init.sh
|
|
|
|
COPY ./bin/cute_ai.py /home/ctf/
|
|
RUN chmod +x /home/ctf/cute_ai.py
|
|
CMD ["/init.sh"]
|
|
|
|
EXPOSE 70 |