From 9b8cc2bdefdc07bd4bf467156299a5cec5715afa Mon Sep 17 00:00:00 2001 From: Luigi Cruz Date: Sat, 8 May 2021 00:23:09 -0300 Subject: [PATCH] Add correct BASE_IMAGE for aarch64. --- build-docker.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build-docker.sh b/build-docker.sh index 5d31f86..c46c9b6 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -77,7 +77,14 @@ BUILD_OPTS="$(echo "${BUILD_OPTS:-}" | sed -E 's@\-c\s?([^ ]+)@-c /config@')" # Check the arch of the machine we're running on. If it's 64-bit, use a 32-bit base image instead case "$(uname -m)" in x86_64|aarch64) - BASE_IMAGE=i386/debian:buster + case "$(uname -m)" in + aarch64) + BASE_IMAGE=arm32v7/debian:buster + ;; + *) + BASE_IMAGE=i386/debian:buster + ;; + esac ;; *) BASE_IMAGE=debian:buster