Skip to content

Instantly share code, notes, and snippets.

@lykhvar
Forked from jpetazzo/gist:6127116
Created October 31, 2016 09:18
Show Gist options
  • Select an option

  • Save lykhvar/02c0bbeda017d56694f134fc92811a72 to your computer and use it in GitHub Desktop.

Select an option

Save lykhvar/02c0bbeda017d56694f134fc92811a72 to your computer and use it in GitHub Desktop.
Debian/Ubuntu containers protips, thanks to @spahl
# 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