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"
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" .