余尚辉 3 miesięcy temu
rodzic
commit
b3164874ae
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      Dockerfile

+ 4 - 1
Dockerfile

@@ -13,7 +13,10 @@ RUN cd /code/pjproject/pjsip-apps/src/swig/python && make && make install
 # pyESL
 RUN cd /code/python-ESL-1.4.18 && python setup.py install
 # nls
-RUN cd /code/alibabacloud-nls-python-sdk-dev && python -m pip install -r requirements.txt && python -m pip install .
+RUN #cd /code/alibabacloud-nls-python-sdk-dev && python -m pip install -r requirements.txt && python -m pip install .
+RUN cd /code/alibabacloud-nls-python-sdk-dev && \
+    python -m pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ && \
+    python -m pip install . -i https://mirrors.aliyun.com/pypi/simple/
 # 安装项目依赖
 RUN pip install -r requirements.txt