Add cross-platform docker images for armv7 and arm64
[RRG-proxmark3.git] / docker / debian-12-bookworm-arm64 / docker_build.sh
blobde56acca793d21f69f273e03532520dd32b5c59a
1 #!/bin/bash
3 . docker_conf
4 # Make sure to connect a Proxmark3 when building if you want to be able to access it from within the Docker instance
5 UART_PORT="$(../../pm3 --list|grep /dev|head -n1|cut -d' ' -f2)"
6 if [ -n "$UART_PORT" ]; then
7 UART_GID="$(stat -c '%g' $UART_PORT)"
8 BUILDARG="--build-arg UART_GID=$UART_GID"
9 else
10 BUILDARG=""
13 # cf https://github.com/multiarch/qemu-user-static
14 #sudo apt install qemu-user-static
15 #docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
16 #docker buildx create --use
17 #docker buildx inspect --bootstrap
18 #docker buildx build $DOCKER_PLATFORM $BUILDARG -t "$DOCKER_IMAGE" --load .
19 docker build $DOCKER_PLATFORM $BUILDARG -t "$DOCKER_IMAGE" .