ceshi5/Dockerfile
2024-09-21 21:22:01 +08:00

19 lines
360 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 使用一个基础镜像例如Python官方镜像
FROM python:3.9
# 设置工作目录
WORKDIR /app
# 复制应用程序文件到容器中
COPY src /app
COPY file/flag.sh /flag.sh
RUN chmod +x /flag.sh
# 安装应用程序依赖项
RUN pip install -r requirements.txt
# 暴露应用程序运行的端口
EXPOSE 5000
CMD ["/flag.sh"]