在Dockerfile中添加
RUN sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list RUN apt-get clean
原文链接
https://www.jianshu.com/p/c1885cc192a6