搭建
自行下载
举例说明
Dolos_ML_CTF_Challenge
docker build -t dolos_ml_ctf .
直接执行就好
Dolos_ML_CTF_Challenge
速度太慢用我这个dockerfile
FROM python:3.8-slim
WORKDIR /app
# 只需要 ca-certificates(HTTPS 证书),其他不需要
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && \
rm -rf /var/lib/apt/lists/*
# 复制依赖文件
COPY requirements.txt .
# 用阿里云 pip 源安装
RUN pip install --no-cache-dir --trusted-host mirrors.aliyun.com \
-i http://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
# 复制应用文件
COPY app.py aiexecuter.py /app/
COPY Images/ /app/Images/
COPY templates/ /app/templates/
RUN touch /app/M0st\$3cur3FLAG.txt
ENV FLASK_APP=app.py
EXPOSE 5000
ENTRYPOINT ["python", "app.py"]
CMD ["--host", "0.0.0.0"]
需要apikey我没办法了
DolosII_ML_CTF_Challenge
Dockerfiles下载太慢用这个
FROM python:3.8-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir --trusted-host mirrors.aliyun.com \
-i http://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
COPY app.py /app/
COPY Images/ /app/Images/
COPY templates/ /app/templates/
ENV FLASK_APP=app.py
EXPOSE 5000
ENTRYPOINT ["python", "app.py"]
需要apikey