1
0

Dockerfile.aarch64/armhf update the crossbuild method

This commit is contained in:
David Personette
2019-09-03 08:46:45 -04:00
parent 5a4c03cfde
commit df894f716b
4 changed files with 32 additions and 6 deletions

8
hooks/pre_build Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
BUILD_ARCH=$(echo "${DOCKERFILE_PATH}" | cut -d '.' -f2)
[ "${BUILD_ARCH}" == "Dockerfile" ] && \
{ echo 'qemu-user-static: Registration not required for this arch';exit 0; }
docker run --rm --privileged multiarch/qemu-user-static:register --reset