🐡 Adds hooks

This commit is contained in:
Alicia Sykes
2021-08-15 11:38:37 +01:00
parent 5dedb37279
commit 02459645c3
3 changed files with 8 additions and 86 deletions

8
docker/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