浏览代码

使用阿里镜像构建后端依赖包

lxylxy123321 1 周之前
父节点
当前提交
3d95eb0367
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/Dockerfile

+ 1 - 1
backend/Dockerfile

@@ -11,7 +11,7 @@ RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debia
 RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
 
 COPY requirements.txt .
-RUN pip install --no-cache-dir -r requirements.txt
+RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -r requirements.txt
 
 COPY . .