8.29
This commit is contained in:
parent
bc19a4ada0
commit
76bf9e8770
10
Dockerfile
10
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user