Skip to content

Build web assets on the native architecture in multi-arch images - #29

Merged
Installation-04 merged 1 commit into
mainfrom
claude/native-web-build
Nov 4, 2026
Merged

Installation-04 merged 1 commit into
mainfrom
claude/native-web-build

Conversation

@Installation-04

Copy link
Copy Markdown
Owner

The 0.0.10 publish hung for 45 minutes in the arm64 (QEMU-emulated) frontend build, and the 0.0.13 frontend publish was again the slow one. The build only produces static files, so npm ci + vite build now run on $BUILDPLATFORM; only the nginx stage is built per platform.

  • frontend/Dockerfile: FROM --platform=$BUILDPLATFORM node:20-alpine AS build.
  • Root Dockerfile (all-in-one): same for web-build; the final image's node binary now comes from a target-platform stage (node-bin), because web-build may be another architecture (copying it would have put an amd64 node in the arm64 image). A test guards both points.
  • amd64 behaviour is identical (build platform == target); CI's docker-stack / docker-single exercise it. The arm64 result is verified by the next release's publish.

Draft: to be released as 0.0.14 only if 0.0.13's frontend publish hangs; otherwise it rides the next release.


Generated by Claude Code

…ch images

The 0.0.10 publish hung for 45 minutes in the arm64 (QEMU) frontend build. The
build only emits static files, so run npm/vite on BUILDPLATFORM; the all-in-one
image takes its node binary from a target-platform stage.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01StC4huMbM6BRB9r4XFXvXv
@Installation-04
Installation-04 marked this pull request as ready for review November 4, 2026 12:47
@Installation-04
Installation-04 merged commit 4e1a82b into main Nov 4, 2026
6 checks passed
@Installation-04 Installation-04 mentioned this pull request Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants