Skip to content

fix(frontend): build Vite assets on BUILDPLATFORM for multi-arch - #32

Merged
dcbert merged 1 commit into
mainfrom
fix/frontend-multiarch-build
Sep 27, 2026
Merged

dcbert merged 1 commit into
mainfrom
fix/frontend-multiarch-build

Conversation

@dcbert

@dcbert dcbert commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Build the frontend Vite assets on $BUILDPLATFORM so multi-arch Umbrel image builds no longer run npm under QEMU for linux/arm64
  • Drop npm install -g npm@latest and use npm ci for reproducible installs

This unblocks Build & Push for Umbrel for v1.2.0 after:
qemu: uncaught target signal 4 (Illegal instruction) during npm i --include=dev.

Test plan

  • Build & Push for Umbrel with version=v1.2.0 succeeds for amd64 + arm64
  • Frontend image serves the dashboard on both arches

Made with Cursor

Avoid QEMU illegal-instruction crashes during npm install when
cross-building linux/arm64; static Vite output is arch-independent.

Co-authored-by: Cursor <cursoragent@cursor.com>
@dcbert
dcbert merged commit b7078f2 into main Sep 27, 2026
4 checks passed
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.

1 participant