Docker Multi Architecture Build Raspbery Pi 4/Arm64
- 1 minutes read - 73 wordsBuilding a Docker image on a Raspberry Pi targeting arm64 & x86/amd64.
Install cross compiler library
docker run --privileged --rm tonistiigi/binfmt --install all
Create image that will build the image
docker buildx create --use --name builder
Bootstrap the new image
docker buildx inpsect --bootstrap
Login to your container registry
docker login registry.gitlab.com
Build the image
docker buildx build . --platform linux/arm64,linux/amd64 --push -t registry.gitlab.com/noirlab/noirlab-template/patternlab:5.13.1
docker buildx build . --platform linux/arm64,linux/amd64 --push -t registry.gitlab.com/noirlab/noirlab-template/mariadb-intra-fresh:10.5.6-20201029