diff --git a/docker/mace-dev-lite/Dockerfile b/docker/mace-dev-lite/Dockerfile index 29e9d490317066a6a708fb9272f499b04d072329..05f7cf742baee1d724826c0238a0a9691f98d17d 100644 --- a/docker/mace-dev-lite/Dockerfile +++ b/docker/mace-dev-lite/Dockerfile @@ -113,9 +113,10 @@ ENV PATH ${PATH}:${ANDROID_NDK_HOME} # Install tools RUN apt-get install -y --no-install-recommends \ android-tools-adb -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com setuptools -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ - "numpy>=1.14.0" \ +RUN pip install --upgrade pip +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com setuptools +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ + numpy>=1.14.0 \ scipy \ jinja2 \ pyyaml \ @@ -125,7 +126,7 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com PTable # Install Tensorflow -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ tensorflow==1.8.0 # Install pytorch (refer to: https://pytorch.org/get-started/locally/) @@ -133,7 +134,7 @@ RUN pip install future==0.17.1 torchvision_nightly RUN pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html # Install ONNX -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ onnx==1.3.0 \ onnx-tf==1.2.0 diff --git a/docker/mace-dev/Dockerfile b/docker/mace-dev/Dockerfile index 65d4b6abb52b54bc969180aea7a7ac82aafe3d49..4b8182618df37fa58bcdbb5d9e748aae31c0f094 100644 --- a/docker/mace-dev/Dockerfile +++ b/docker/mace-dev/Dockerfile @@ -9,7 +9,7 @@ RUN apt-get install -y --no-install-recommends \ screen \ htop -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ sphinx \ sphinx-autobuild \ sphinx_rtd_theme \ @@ -19,8 +19,8 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com RUN pyenv global 3.6.3 # Install tools -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com setuptools -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com setuptools +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ "numpy>=1.14.0" \ scipy \ jinja2 \ @@ -31,7 +31,7 @@ RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com PTable # Install Tensorflow -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ tensorflow==1.8.0 # Install pytorch (refer to: https://pytorch.org/get-started/locally/) @@ -39,11 +39,11 @@ RUN pip install future==0.17.1 torchvision_nightly RUN pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html # Install ONNX -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ onnx==1.3.0 \ onnx-tf==1.2.0 -RUN pip install -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com \ +RUN pip install -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com \ sphinx \ sphinx-autobuild \ sphinx_rtd_theme \ diff --git a/docker/update_images.sh b/docker/update_images.sh index 1af9564eed966b774a1bc084a983943c9a93f8d0..156256d9334d8be09adb2b6865b9600d962f79d2 100755 --- a/docker/update_images.sh +++ b/docker/update_images.sh @@ -24,5 +24,3 @@ else echo "Login docker registry server is needed!" exit 1 fi - -