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
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 \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
@ -17,7 +17,6 @@ RUN apt-get update \
g++ \
gawk \
git \
gpg-agent \
less \
libz-dev \
locales \
@ -28,6 +27,8 @@ RUN apt-get update \
sudo \
uuid-runtime \
tzdata \
&& apt remove --purge software-properties-common gnupg-agent \
&& apt autoremove --purge \
&& rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& useradd -m -s /bin/bash linuxbrew \