Disable recommends in python-base and python-builder

We disable these on our VM images, so might as well make our
container images follow suit. Could make them a smidge smaller.
Also do it in the gerrit-base image.

Change-Id: Iba60cf5c7009d57c4910f9e4464aff9231598ad6
This commit is contained in:
Monty Taylor 2020-02-26 16:10:58 -06:00
parent f27825d44e
commit 643623ba8a
3 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,8 @@ RUN assemble
FROM docker.io/library/openjdk:8
RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/95disable-recommends
# libcgi-pm-perl is for gitweb
RUN apt-get update \
&& apt-get install -y dumb-init python3-launchpadlib python3-distutils \

View File

@ -15,6 +15,8 @@
FROM docker.io/library/python:3.7-slim
RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/95disable-recommends
RUN apt-get update \
&& apt-get install -y dumb-init libjemalloc2 \
&& apt-get clean \

View File

@ -24,6 +24,8 @@ RUN equivs-build /tmp/python3-dev.control
FROM docker.io/library/python:3.7-slim
RUN echo 'APT::Install-Recommends "0";' > /etc/apt/apt.conf.d/95disable-recommends
COPY --from=fake-python /tmp/python3-dev_4.0.0_all.deb /tmp/python3-dev_4.0.0_all.deb
COPY scripts/assemble /usr/local/bin/assemble
COPY scripts/get-extras-packages /usr/local/bin/get-extras-packages