Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jpetazzo
Created July 31, 2013 23:21
Show Gist options
  • Star 67 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save jpetazzo/6127116 to your computer and use it in GitHub Desktop.
Save jpetazzo/6127116 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
@quantenschaum
Copy link

typo, should be RUN echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/no-lang

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