Browse Source

pip install use aliyun source

chenhaiyang 1 year ago
parent
commit
cc8047344c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -8,7 +8,7 @@ COPY .env_pro /code/.env
 
 RUN apt-get update && apt-get install -y --no-install-recommends \
     build-essential && \
-    pip install --no-cache-dir --upgrade -r /code/requirements.txt && \
+    pip install --no-cache-dir --upgrade -r /code/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ && \
     mkdir -p /code/ml_models
 
 ENV PYTHONPATH=/code