Include arm Dockerfiles

Uses QEMU to build the docker images on amd64 architectures, such that Docker Hub can build the images.
This commit is contained in:
Erik Vroon
2021-08-07 16:39:10 +02:00
parent ec5bc2c730
commit 8f1201b4d3
3 changed files with 94 additions and 0 deletions

8
hooks/pre-build Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
# Source: https://github.com/ckulka/docker-multi-arch-example/blob/master/hooks/pre_build
# Used to setup QEMU to build arm images on amd64 processors.
# Register qemu-*-static for all supported processors except the
# current one, but also remove all registered binfmt_misc before
docker run --rm --privileged multiarch/qemu-user-static:register --reset