Add pip mirror settings for dockerfile
1/30/2023 by Junxiao Guo

Install python and pip

RUN apt-get update RUN apt-get install -y python3.5 RUN apt-get install -y python3-pip

Update pip to latest

RUN pip3 install pip -U

Config mirror settings

RUN pip3 config set global.index-url http://mirrors.aliyun.com/pypi/simple RUN pip3 config set install.trusted-host mirrors.aliyun.com

If you want to use other mirror resources, simply replace the url after index-url