Skip to content

Commit

Permalink
Add correct BASE_IMAGE for aarch64.
Browse files Browse the repository at this point in the history
  • Loading branch information
luigifcruz committed May 28, 2021
1 parent 969e43a commit e9ebb38
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9ebb38

Please sign in to comment.