修改dockerfile 用国内源:
替换ubuntu源:
RUN sed -i 's/http:\/\/archive.ubuntu.com/http:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu/g' /etc/apt/sources.list
替换pip源
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
修改dockerfile 用国内源:
替换ubuntu源:
RUN sed -i 's/http:\/\/archive.ubuntu.com/http:\/\/mirrors.tuna.tsinghua.edu.cn\/ubuntu/g' /etc/apt/sources.list
替换pip源
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple