From b636a469a2a4606363c77662cc6c33dd05751091 Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Fri, 18 Aug 2017 12:20:31 +0900 Subject: [PATCH] Keep package index files small This is mostly for those cases where Dockerfile RUN instructions do not run `remove-apt-lists`, either by accident or on purpose. --- scripts/tweak-apt-config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/tweak-apt-config b/scripts/tweak-apt-config index 624e960..6f34a48 100755 --- a/scripts/tweak-apt-config +++ b/scripts/tweak-apt-config @@ -21,6 +21,12 @@ APT::Update::Post-Invoke { "if test -x $cmd; then $cmd; fi"; }; EOF chmod 0644 $cfg/docker-clean +cat > $cfg/docker-compress <<- EOF +Acquire::GzipIndexes "true"; +Acquire::CompressionTypes::Order { "gz"; }; +EOF +chmod 0644 $cfg/docker-compress + cat > $cfg/docker-translations <<- EOF Acquire::Languages "none"; EOF