Use Dockerfile in Docker to change domestic sources

Add pip to the dockerfile to change the domestic source
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
 
RUN pip config set global.index-url https://pypi.tuna.tsinghua. edu.cn/simple

Guess you like

Origin blog.csdn.net/davice_li/article/details/132322880