Reducing disk footprint for Ubuntu/Debian images

Only install English locales and do not install documentation.

http://wiki.ubuntu.com/ReducingDiskFootprint

Change-Id: I129cd7cc8777112acb751c600feb8900c0c2a461
This commit is contained in:
Christian Berendt 2016-08-05 15:42:52 +02:00
parent 3071d32a3f
commit 28f5722e24
3 changed files with 17 additions and 0 deletions

View File

@ -190,6 +190,9 @@ RUN cat /tmp/kolla_bashrc >> /etc/bash.bashrc
# This will prevent questions from being asked during the install
ENV DEBIAN_FRONTEND noninteractive
# Reducing disk footprint
COPY dpkg_reducing_disk_footprint /etc/dpkg/dpkg.cfg.d/dpkg_reducing_disk_footprint
# Need apt-transport-https BEFORE we replace sources.list or apt-get update wont work!
RUN apt-get update && apt-get -y install --no-install-recommends apt-transport-https ca-certificates

View File

@ -0,0 +1,9 @@
path-exclude /usr/share/doc/*
path-include /usr/share/doc/*/copyright
path-exclude /usr/share/man/*
path-exclude /usr/share/groff/*
path-exclude /usr/share/info/*
path-exclude /usr/share/lintian/*
path-exclude /usr/share/linda/*
path-exclude /usr/share/locale/*
path-include /usr/share/locale/en*

View File

@ -0,0 +1,5 @@
---
other:
- Reducing disk footprint for Ubuntu/Debian images
by only installing English locales and no
documentation files.