From f11c4514031571f3b56801958a422da358d819c2 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Fri, 11 Nov 2022 14:12:54 +0100 Subject: [PATCH] Restrict it to arch where there is a package --- core/base/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/base/Dockerfile b/core/base/Dockerfile index 242fd060..ad9dfa57 100644 --- a/core/base/Dockerfile +++ b/core/base/Dockerfile @@ -13,7 +13,12 @@ RUN set -euxo pipefail \ ; addgroup -Sg ${MAILU_GID} mailu \ ; adduser -Sg ${MAILU_UID} -G mailu -h /app -g "mailu app" -s /bin/bash mailu \ ; apk add --no-cache bash ca-certificates curl python3 tzdata \ - ; apk add --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing hardened-malloc + ; machine="$(uname -m)" \ + ; ( [[ "${machine}" == x86_64 ]] || \ + [[ "${machine}" == armv8* ]] || \ + [[ "${machine}" == aarch64 ]] ) && \ + echo "Installing hardened-malloc" && \ + apk add --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing hardened-malloc WORKDIR /app