Skip to content

Commit 18d77f5

Browse files
Copexitclaude
andcommitted
fix: avoid QEMU arm64 crash by pinning builder stage to native arch
The pnpm install step crashes under QEMU arm64 emulation with "Illegal instruction". Since the build output is just static HTML/CSS/JS, pin the builder stage to $BUILDPLATFORM (amd64 on GitHub Actions) and only cross-compile the nginx stage which just copies files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 87cc164 commit 18d77f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile.umbrel

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
# Stage 1: Build the static export
2-
FROM node:22-alpine AS builder
1+
# Stage 1: Build the static export (always on native amd64 - output is
2+
# just HTML/CSS/JS so it doesn't need to match the target platform).
3+
# This avoids QEMU arm64 emulation crashes during pnpm install.
4+
FROM --platform=$BUILDPLATFORM node:22-alpine AS builder
35

46
RUN corepack enable && corepack prepare pnpm@10 --activate
57

0 commit comments

Comments
 (0)