Docker镜像更换为阿里云

修改Dockerfile , 调整如下: 


RUN   cp /etc/apt/sources.list /etc/apt/sources.list.bak

RUN   echo "">sources.list
RUN   echo "deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse">>sources.list
RUN   echo "deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse">>sources.list
RUN   echo "deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse">>sources.list
RUN   echo "deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse">>sources.list
RUN   echo "deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse">>sources.list
RUN   echo "deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse">>sources.list
RUN   echo "deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse">>sources.list
RUN   echo "deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse">>sources.list
RUN   echo "deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse">>sources.list
RUN   echo "deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse">>sources.list
RUN   echo "deb http://archive.canonical.com/ubuntu/ xenial partner">>sources.list
RUN   echo "deb http://extras.ubuntu.com/ubuntu/ xenial main">>sources.list

你可能感兴趣的:(Docker镜像更换为阿里云)