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.
This commit is contained in:
Olaf Meeuwissen 2017-08-18 12:20:31 +09:00
parent fa237f67eb
commit b636a469a2
1 changed files with 6 additions and 0 deletions

View File

@ -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