mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Dockerfile: fix build of Ubuntu 18.04 image.
Some of these packages are only available on newer versions.
This commit is contained in:
parent
3aeb7c8a47
commit
ed38bf1061
@ -23,9 +23,7 @@ RUN apt-get update \
|
|||||||
fonts-dejavu-core \
|
fonts-dejavu-core \
|
||||||
g++ \
|
g++ \
|
||||||
gawk \
|
gawk \
|
||||||
gh \
|
|
||||||
git \
|
git \
|
||||||
gpg \
|
|
||||||
less \
|
less \
|
||||||
libz-dev \
|
libz-dev \
|
||||||
locales \
|
locales \
|
||||||
@ -33,13 +31,12 @@ RUN apt-get update \
|
|||||||
netbase \
|
netbase \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
patch \
|
patch \
|
||||||
skopeo \
|
|
||||||
sudo \
|
sudo \
|
||||||
unzip \
|
unzip \
|
||||||
uuid-runtime \
|
uuid-runtime \
|
||||||
tzdata \
|
tzdata \
|
||||||
jq \
|
jq \
|
||||||
&& if [[ "$(. /etc/lsb-release; echo "${DISTRIB_RELEASE}" | cut -d. -f1)" -ge 18 ]]; then apt-get install gpg; fi \
|
&& if [[ "$(. /etc/lsb-release; echo "${DISTRIB_RELEASE}" | cut -d. -f1)" -ge 18 ]]; then apt-get install gh gpg skopeo; fi \
|
||||||
&& apt-get remove --purge -y software-properties-common \
|
&& apt-get remove --purge -y software-properties-common \
|
||||||
&& apt-get autoremove --purge -y \
|
&& apt-get autoremove --purge -y \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user