From 76bf9e877094b55b4923f25cb2c420e514034779 Mon Sep 17 00:00:00 2001 From: zy123 <646228430@qq.com> Date: Fri, 30 Aug 2024 09:20:26 +0800 Subject: [PATCH] 8.29 --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 133e398..2b73cf2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,14 +4,18 @@ FROM python:3.8-slim # 设置工作目录 WORKDIR /ZbparseProjects +# 复制requirements文件到容器中 +COPY requirements.txt . + +# 关闭pip的进度条以减少日志输出量 RUN pip config set global.progress_bar off # 安装依赖 RUN pip install --upgrade pip --default-timeout=100 \ - && pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt + && pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt -# 将当前目录的内容复制到容器的 /PycharmProjects 中 -COPY .. . +# 将当前目录的内容复制到容器的 /ZbparseProjects 中 +COPY . . # 定义环境变量 ENV DASHSCOPE_API_KEY=sk-f7ad8ad193064cf482588f7064e75183