---
summary: "The Dockerfile build stage runs on the native build platform, fixing the linux/amd64 half of the multi-arch image build."
breaking: false
security: false
---

# 3.3.1 — 2026-08-21

## Fixed

- **The Docker build stage is pinned to `--platform=$BUILDPLATFORM`.** It previously ran in the target platform's container, so on an arm64 host the `linux/amd64` stage executed under QEMU, where `bun run build` aborts on a spurious JavaScriptCore `MemoryExhaustion` assertion at ~21 MB peak RSS and the multi-arch build fails. `bun run build` emits platform-independent JavaScript and only `dist/` is copied into the production stage, which still resolves per target.
