From ecb5f79cf3d8c00c317d613c90f7802a35e23266 Mon Sep 17 00:00:00 2001 From: pikann22 Date: Sun, 26 Jul 2026 05:29:33 +0000 Subject: [PATCH] fix: build Web image builder stage on native platform The v0.10.6 release CD run failed the Web image build: bun install under QEMU emulation for the linux/arm64 target corrupted extraction of the @biomejs/cli-linux-arm64 tarball (a devDependency never actually invoked by the build script). Since apps/web's build output is architecture-independent static assets, pin the builder stage to --platform=$BUILDPLATFORM so it always runs natively and skips QEMU entirely; only the final caddy runtime stage needs to be multi-arch. Co-Authored-By: Claude Sonnet 5 --- apps/web/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index f9ec1d4c..997c9fa2 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -1,7 +1,11 @@ # syntax=docker/dockerfile:1 # ── Build stage ─────────────────────────────────────────────────────────────── -FROM oven/bun:1-alpine AS builder +# Runs on the build platform (not the target platform): the output is +# architecture-independent static assets, so cross-arch runs would otherwise +# execute bun under QEMU emulation for no benefit, which has been known to +# corrupt native-binary tarball extraction (e.g. @biomejs/cli-linux-arm64). +FROM --platform=$BUILDPLATFORM oven/bun:1-alpine AS builder WORKDIR /build