Dockerfile: purge unneeded packages

This commit is contained in:
Dawid Dziurla 2022-04-24 23:25:30 +02:00 committed by GitHub
parent ac57c4bb89
commit 7d1a97f015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ ARG DEBIAN_FRONTEND=noninteractive
# hadolint ignore=DL3008 # hadolint ignore=DL3008
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends software-properties-common \ && apt-get install -y --no-install-recommends software-properties-common gnupg-agent \
&& add-apt-repository -y ppa:git-core/ppa \ && add-apt-repository -y ppa:git-core/ppa \
&& apt-get update \ && apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \
@ -17,7 +17,6 @@ RUN apt-get update \
g++ \ g++ \
gawk \ gawk \
git \ git \
gpg-agent \
less \ less \
libz-dev \ libz-dev \
locales \ locales \
@ -28,6 +27,8 @@ RUN apt-get update \
sudo \ sudo \
uuid-runtime \ uuid-runtime \
tzdata \ tzdata \
&& apt remove --purge software-properties-common gnupg-agent \
&& apt autoremove --purge \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -f UTF-8 en_US.UTF-8 \ && localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& useradd -m -s /bin/bash linuxbrew \ && useradd -m -s /bin/bash linuxbrew \