precimed / gsa-mixer

GNU General Public License v3.0
8 stars 2 forks source link

Mixer Docker build for ARM64/M1/2/3 macs #12

Open ofrei opened 1 month ago

ofrei commented 1 month ago

It should be possible to build an image working on ARM using --platform argument.

docker build --platform=linux/amd64 -t ghcr.io/comorment/mixer -f dockerfiles/mixer/Dockerfile .

My understanding is that this was tested when building docker image on the MAC m1/m2/m3 laptop. The remaining question (or, rather, remaining thing to test...) is how to build this github actions & pull the respective image from a MAC laptop.

espenhgn commented 1 month ago

Hi @ofrei. Multi-platform images are supported by the builder via the platform argument: https://docs.docker.com/build/ci/github-actions/multi-platform/ This might work out of the box unless some dependencies cannot be resolved in the Dockerfile/build scripts for the arm64 build.