Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Yggdrasil/522aed9ddfaaff46b261712f1f9651f6 to your computer and use it in GitHub Desktop.

Select an option

Save Yggdrasil/522aed9ddfaaff46b261712f1f9651f6 to your computer and use it in GitHub Desktop.

Revisions

  1. Yggdrasil created this gist May 4, 2016.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    ############################################################
    # 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