From cb39ece21be08e20b2af18aebff85eb14ad68916 Mon Sep 17 00:00:00 2001 From: SweetMNM <44876816+SweetMNM@users.noreply.github.com> Date: Tue, 7 Jun 2022 19:41:11 +0300 Subject: [PATCH] :bug: aarch64 test number 3 --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c011dd..678ab26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ FROM debian:bullseye-slim ARG TARGETPLATFORM -# ARG ARCH=$(case ${TARGETPLATFORM:-linux/amd64} in \ -# "linux/amd64") echo "amd64" ;; \ -# "linux/arm64") echo "aarch64" ;; \ -# *) echo "" ;; esac) +ARG ARCH=$(case ${TARGETPLATFORM:-linux/amd64} in \ + "linux/amd64") echo "amd64" ;; \ + "linux/arm64") echo "aarch64" ;; \ + *) echo "" ;; esac) +ARG ARCH44=$(case ${TARGETPLATFORM:-linux/amd64} in \ + "linux/amd64") echo "amd64" ;; \ + "linux/arm64") echo "aarch64" ;; \ + *) echo "" ;; esac) ARG S6_VERSION="2.2.0.3" ENV DEBIAN_FRONTEND="noninteractive" \ @@ -24,7 +28,7 @@ RUN export ARCH=$(case ${TARGETPLATFORM:-linux/amd64} in \ "linux/amd64") echo "a7076cf205b331e9f8479bbb09d9df77dbb5cd8f7d12e9b74920902e0c16dd98" ;; \ "linux/arm64") echo "84f585a100b610124bb80e441ef2dc2d68ac2c345fd393d75a6293e0951ccfc5" ;; \ *) echo "" ;; esac) && \ - echo "Building for arch: ${ARCH}, expecting S6 SHA256: ${S6_EXPECTED_SHA256}" && \ + echo "Building for arch: ${ARCH}|${ARCH44}, downloading S6 from: ${S6_DOWNLOAD}}, expecting S6 SHA256: ${S6_EXPECTED_SHA256}" && \ set -x && \ apt-get update && \ apt-get -y --no-install-recommends install locales && \