You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
394 B

# 使用 Python 官方镜像作为基础镜像
FROM python:3.8
# 设置工作目录
WORKDIR /app
# 将本地文件复制到镜像中
COPY app.py /app
# 安装 Python 依赖
# 如果有额外的依赖,将它们添加到 requirements.txt 中并使用以下命令安装:
# COPY requirements.txt /app
# RUN pip install -r requirements.txt
# 指定应用程序入口
CMD ["python", "app.py"]