diff options
Diffstat (limited to 'packaging/docker-image/Dockerfile')
-rw-r--r-- | packaging/docker-image/Dockerfile | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/packaging/docker-image/Dockerfile b/packaging/docker-image/Dockerfile index 4e0b8671ba..ced2a49e76 100644 --- a/packaging/docker-image/Dockerfile +++ b/packaging/docker-image/Dockerfile @@ -1,22 +1,13 @@ # The official Canonical Ubuntu Bionic image is ideal from a security perspective, # especially for the enterprises that we, the RabbitMQ team, have to deal with -FROM ubuntu:20.04 +ARG BASE=ubuntu +FROM ${BASE}:20.04 RUN set -eux; \ apt-get update; \ - apt-get install -y lsb-release ubuntu-dbgsym-keyring; \ - echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" > /etc/apt/sources.list.d/ddebs.list; \ - echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-updates main restricted universe multiverse" >> /etc/apt/sources.list.d/ddebs.list; \ - echo "deb http://ddebs.ubuntu.com $(lsb_release -cs)-proposed main restricted universe multiverse" >> /etc/apt/sources.list.d/ddebs.list; \ - apt-get update; \ apt-get install -y --no-install-recommends \ # grab gosu for easy step-down from root gosu \ - libc6-dbg \ - libgcc-s1-dbgsym \ - libstdc++6-dbgsym \ - libtinfo6-dbgsym \ - zlib1g-dbgsym \ ; \ rm -rf /var/lib/apt/lists/*; \ # verify that the "gosu" binary works @@ -44,6 +35,7 @@ ENV OTP_VERSION ${OTP_VERSION} # http://erlang.org/pipermail/erlang-questions/2019-January/097067.html ARG OTP_SHA256 ENV OTP_SOURCE_SHA256=${OTP_SHA256} +ARG SKIP_OTP_VERIFY=false # Install dependencies required to build Erlang/OTP from source # https://erlang.org/doc/installation_guide/INSTALL.html @@ -116,7 +108,7 @@ RUN set -eux; \ # Download, verify & extract OTP_SOURCE mkdir -p "$OTP_PATH"; \ wget --progress dot:giga --output-document "$OTP_PATH.tar.gz" "$OTP_SOURCE_URL"; \ - echo "$OTP_SOURCE_SHA256 *$OTP_PATH.tar.gz" | sha256sum --check --strict -; \ + test "$SKIP_OTP_VERIFY" = "true" || echo "$OTP_SOURCE_SHA256 *$OTP_PATH.tar.gz" | sha256sum --check --strict -; \ tar --extract --file "$OTP_PATH.tar.gz" --directory "$OTP_PATH" --strip-components 1; \ \ # Configure Erlang/OTP for compilation, disable unused features & applications |