From c1d1015c9b08ca56c493f49f9399523f24f3023b Mon Sep 17 00:00:00 2001 From: Ani Balasubramaniam Date: Tue, 2 Jun 2020 00:47:37 -0700 Subject: [PATCH] Add comment --- build-docker.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build-docker.sh b/build-docker.sh index 6ab8f4c..7ba3194 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -73,6 +73,7 @@ fi # Modify original build-options to allow config file to be mounted in the docker container 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 ARCH=$(uname -m) [[ $ARCH == "x86_64" || $ARCH == "aarch64" ]] && BASE_IMAGE=i386/debian:buster || BASE_IMAGE=debian:buster ${DOCKER} build --build-arg BASE_IMAGE=${BASE_IMAGE} -t pi-gen "${DIR}"