Created
May 4, 2016 08:39
-
-
Save Yggdrasil/522aed9ddfaaff46b261712f1f9651f6 to your computer and use it in GitHub Desktop.
Dockerfile docker build speedup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################ | |
# Speedup DPKG and don't use cache for packages | |
############################################################ | |
# Taken from here: https://gist.github.com/kwk/55bb5b6a4b7457bef38d | |
# | |
# this forces dpkg not to call sync() after package extraction and speeds up | |
# install | |
RUN echo "force-unsafe-io" > /etc/dpkg/dpkg.cfg.d/02apt-speedup | |
# | |
# we don't need and apt cache in a container | |
RUN echo "Acquire::http {No-Cache=True;};" > /etc/apt/apt.conf.d/no-cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment