Repository navigation
Build web assets on the native architecture in multi-arch images - #29
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 buildnow run on$BUILDPLATFORM; only the nginx stage is built per platform.frontend/Dockerfile:FROM --platform=$BUILDPLATFORM node:20-alpine AS build.Dockerfile(all-in-one): same forweb-build; the final image'snodebinary now comes from a target-platform stage (node-bin), becauseweb-buildmay be another architecture (copying it would have put an amd64 node in the arm64 image). A test guards both points.docker-stack/docker-singleexercise 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