I had some issues building images that has multi-arch support.
This dockerfile worked out for me.
Since the releases are done with a separate image for each architecture, I needed to build my own image to have all architectures embedded in one single image.
This file will work with the command docker buildx build -t foo/bar --platform "linux/arm64,linux/amd64" -f Dockerfile.buildx .
I had some issues building images that has multi-arch support. This dockerfile worked out for me.
Since the releases are done with a separate image for each architecture, I needed to build my own image to have all architectures embedded in one single image.
This file will work with the command
docker buildx build -t foo/bar --platform "linux/arm64,linux/amd64" -f Dockerfile.buildx .