lightning-shell icon indicating copy to clipboard operation
lightning-shell copied to clipboard

Make use of TARGETARCH and TARGETPLATFORM for better multiarch builds

Open dsbaars opened this issue 3 years ago • 1 comments

I noticed a build arg was used to define the architecture, while there are TARGETARCH and TARGETPLATFORM variables available.

Now you can build multiarch docker images with the same tag, e.g.: docker buildx build --platform=linux/arm64,linux/amd64 --build-arg version=dev --file Dockerfile.bullseye . --tag dsbaars/lightning-shell:latest --output "type=registry"

dsbaars avatar Jun 10 '22 23:06 dsbaars

That's a thing in Docker? I never knew that, that makes a lot of stuff so much easier for me, thank you!

AaronDewes avatar Jul 17 '22 18:07 AaronDewes