Dockerfile: install gpg

This commit is contained in:
Bo Anderson 2022-11-30 16:02:46 +00:00
parent cb355a23a0
commit 2acabcae0d
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -4,6 +4,7 @@ FROM ubuntu:"${version}"
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
# hadolint ignore=DL3008 # hadolint ignore=DL3008
# shellcheck disable=SC2292
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends software-properties-common gnupg-agent \ && 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 \
@ -28,8 +29,9 @@ RUN apt-get update \
uuid-runtime \ uuid-runtime \
tzdata \ tzdata \
jq \ jq \
&& apt remove --purge -y software-properties-common \ && if [ "$(. /etc/lsb-release; echo "${DISTRIB_RELEASE}" | cut -d. -f1)" -ge 18 ]; then apt-get install gpg; fi \
&& apt autoremove --purge -y \ && apt-get remove --purge -y software-properties-common \
&& apt-get autoremove --purge -y \
&& 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 \