mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Dockerfile: purge unneeded packages
This commit is contained in:
parent
ac57c4bb89
commit
7d1a97f015
@ -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 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user