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"
12 docker build
$BUILDARG -t "$DOCKER_IMAGE" .