Skip to content

Instantly share code, notes, and snippets.

@123Daoxyz
Created August 4, 2019 08:36
Show Gist options
  • Save 123Daoxyz/ddbcc6ce17b4e8dbf1bb459fe1b5a7ee to your computer and use it in GitHub Desktop.
Save 123Daoxyz/ddbcc6ce17b4e8dbf1bb459fe1b5a7ee to your computer and use it in GitHub Desktop.
How to make docker build images faster in china

make your docker build process faster in china

way one, add these lines in your dockerfile

RUN sed -i "s/archive.ubuntu./mirrors.aliyun./g" /etc/apt/sources.list
RUN sed -i "s/deb.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list
RUN sed -i "s/security.debian.org/mirrors.aliyun.com\/debian-security/g" /etc/apt/sources.list

way two, use the awesome daocloud, just free

check this doc: https://www.daocloud.io/mirror#accelerator-doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment