summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXECDesign <XECDesign@users.noreply.github.com>2022-04-25 15:11:28 +0100
committerGitHub <noreply@github.com>2022-04-25 15:11:28 +0100
commitca06d62f2ef63bd00b5729e48c64a2688e46ae14 (patch)
treed11c9a03517c64f88f929143769ca299f8a433c1
parent18aee5cfb8a41421e512aad75835f06fe93c7efb (diff)
Docker: always use debian:bullseye for arm64 image
Fixes #613
-rwxr-xr-xbuild-docker.sh11
1 files changed, 1 insertions, 10 deletions
diff --git a/build-docker.sh b/build-docker.sh
index a7f18f1..a44b33f 100755
--- a/build-docker.sh
+++ b/build-docker.sh
@@ -75,16 +75,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
-case "$(uname -m)" in
- x86_64|aarch64)
- BASE_IMAGE=i386/debian:bullseye
- ;;
- *)
- BASE_IMAGE=debian:bullseye
- ;;
-esac
-${DOCKER} build --build-arg BASE_IMAGE=${BASE_IMAGE} -t pi-gen "${DIR}"
+${DOCKER} build --build-arg BASE_IMAGE=debian:bullseye -t pi-gen "${DIR}"
if [ "${CONTAINER_EXISTS}" != "" ]; then
trap 'echo "got CTRL+C... please wait 5s" && ${DOCKER} stop -t 5 ${CONTAINER_NAME}_cont' SIGINT SIGTERM