feat(oci): multi-arch image build for amd64 + arm64 #20
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/multi-arch-oci-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Publish linux/amd64 + linux/arm64 in the same manifest list so self-hosters on ARM (Pi, Ampere, Apple Silicon servers) can pull a working mokosh-www image. The Dioxus client output is a WASM bundle which is arch-agnostic, so the rust-builder stage is pinned to BUILDPLATFORM (compiles once on the runner's native amd64) and only the small Caddy-on-alpine runtime stage is rebuilt per target arch. setup-qemu-action runs before the buildx builder is created so the runner can emulate arm64 for that runtime stage. Validated locally:
docker buildx build --platform linux/arm64 --load -f oci-build/Dockerfile .produces a 56MB arm64 image that serves HTTP 200 via Caddy under QEMU.Signed-off-by: nrupard natrsmith11@gmail.com