# 选择基础镜像 | |
FROM python:3.8 | |
# 设置工作目录 | |
WORKDIR /app | |
# 克隆GitHub仓库 | |
RUN git clone https://github.com/wfcz10086/AI-automatically-generates-novels.git . | |
# 安装依赖 | |
RUN pip install -r requirements.txt | |
# 暴露端口 | |
EXPOSE 7860 | |
# 启动应用 | |
CMD ["python", "app.py"] |
# 选择基础镜像 | |
FROM python:3.8 | |
# 设置工作目录 | |
WORKDIR /app | |
# 克隆GitHub仓库 | |
RUN git clone https://github.com/wfcz10086/AI-automatically-generates-novels.git . | |
# 安装依赖 | |
RUN pip install -r requirements.txt | |
# 暴露端口 | |
EXPOSE 7860 | |
# 启动应用 | |
CMD ["python", "app.py"] |