فهرست منبع

更换数据源

xueyiming 1 ماه پیش
والد
کامیت
7a60b087de
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      Dockerfile

+ 3 - 1
Dockerfile

@@ -15,7 +15,9 @@ RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debia
 # 1) 安装依赖(利用 Docker layer 缓存)
 COPY requirements.txt /app/requirements.txt
 RUN pip install --no-cache-dir --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple/
-RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
+#RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
+# 将原来的清华源改为阿里源
+RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
 
 # 2) 复制源码
 COPY . /app