do not remove docs/etc so it is an accurate test env

This commit is contained in:
Hans-Christoph Steiner 2018-02-23 15:17:08 +01:00
parent 792922b378
commit 71a5dcfe3c
1 changed files with 2 additions and 4 deletions

View File

@ -5,10 +5,8 @@ ENV LANG=C.UTF-8 \
DEBIAN_FRONTEND=noninteractive
# install the minimum needed for a standard git-buildpackage build
# that includes pristine-tar. This also does not install
# documentation to keep the image small.
RUN printf "path-exclude=/usr/share/locale/*\npath-exclude=/usr/share/man/*\npath-exclude=/usr/share/doc/*\npath-include=/usr/share/doc/*/copyright\n" >/etc/dpkg/dpkg.cfg.d/01_nodoc \
&& mkdir -p /usr/share/man/man1 \
# that includes pristine-tar. update-alternatives needs ../man1/
RUN mkdir -p /usr/share/man/man1 \
&& apt-get update \
&& apt-get -qy upgrade \
&& apt-get -qy dist-upgrade \