Skip to content

Instantly share code, notes, and snippets.

@kwk
Forked from jpetazzo/gist:6127116
Last active August 29, 2015 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwk/55bb5b6a4b7457bef38d to your computer and use it in GitHub Desktop.
Save kwk/55bb5b6a4b7457bef38d to your computer and use it in GitHub Desktop.
# 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