mittwald / kubernetes-replicator

Kubernetes controller for synchronizing secrets & config maps across namespaces
Apache License 2.0
886 stars 101 forks source link

fix: Buildx fix for multiarch #263

Open RWejlgaard opened 1 year ago

RWejlgaard commented 1 year ago

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 .