Dockerfile构建加速:使用国内apt、pip镜像源加速容器构建 docker 2023年 11月20日 0 阅读 修改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