From 1859404a1fa8d6c1fc838395d0e8d613cf00c823 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 30 Nov 2021 21:20:12 +0100 Subject: [PATCH] Update Dockerfile --- portainer/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/portainer/Dockerfile b/portainer/Dockerfile index 6826f55e6..1f8130c6a 100644 --- a/portainer/Dockerfile +++ b/portainer/Dockerfile @@ -7,12 +7,13 @@ ARG BUILD_UPSTREAM="2.9.3" SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Setup base -ARG BUILD_ARCH RUN \ apk add --no-cache \ - nginx \ - \ - && if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \ + nginx || true + +ARG BUILD_ARCH +RUN \ + if [ "${BUILD_ARCH}" = "aarch64" ]; then ARCH="arm64"; fi \ && if [ "${BUILD_ARCH}" = "armhf" ]; then ARCH="arm"; fi \ && if [ "${BUILD_ARCH}" = "armv7" ]; then ARCH="arm"; fi \ && if [ "${BUILD_ARCH}" = "amd64" ]; then ARCH="amd64"; fi \