Pārlūkot izejas kodu

use native docker image to build

pull/64/head
Luigi Cruz pirms 3 gadiem
vecāks
revīzija
bfd5ced6d5
1 mainītis faili ar 1 papildinājumiem un 16 dzēšanām
  1. +1
    -16
      build-docker.sh

+ 1
- 16
build-docker.sh Parādīt failu

@@ -75,22 +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)
case "$(uname -m)" in
aarch64)
BASE_IMAGE=arm32v7/debian:bullseye
;;
*)
BASE_IMAGE=i386/debian:bullseye
;;
esac
;;
*)
BASE_IMAGE=debian:bullseye
;;
esac
BASE_IMAGE=debian:bullseye
${DOCKER} build --build-arg BASE_IMAGE=${BASE_IMAGE} -t pi-gen "${DIR}"

if [ "${CONTAINER_EXISTS}" != "" ]; then


Notiek ielāde…
Atcelt
Saglabāt