switch to multi-stage build, prepare multi-arch build

This commit is contained in:
John
2021-01-17 14:02:07 +01:00
parent 9ab7739704
commit d186bc64ff
11 changed files with 248 additions and 76 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
arch=$(echo "$DOCKERFILE_PATH" | cut -d '.' -f 2)
if [ "$arch" == "Dockerfile" ]; then
echo "QEMU not needed"
exit 0
fi
echo "registering QEMU for $arch"
docker run --rm --privileged multiarch/qemu-user-static:register --reset
echo "QEMU registered for $arch"