Dockerfile中在RUN apt-get update
之前
添加如下两句代码:
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean
即可替换成阿里源,加快镜像构建速度
Dockerfile中在RUN apt-get update
之前
添加如下两句代码:
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean
即可替换成阿里源,加快镜像构建速度