|
|
@@ -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
|