docker: avoid additional apt packages by --no-install-recommends (#4543)

This will help we keep the image not too heavy that caused by those
additional, suggestion apt packages.

Only install the packages we explicitly want.
This commit is contained in:
Peter Dave Hello 2021-04-05 16:09:34 +08:00 committed by GitHub
parent b9f9094ec7
commit 66c8ecc71e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ ARG MITMPROXY_WHEEL
RUN useradd -mU mitmproxy
RUN apt-get update \
&& apt-get install -y gosu \
&& apt-get install -y --no-install-recommends gosu \
&& rm -rf /var/lib/apt/lists/*
COPY $MITMPROXY_WHEEL /home/mitmproxy/