Fix UI Docker build: use native platform for npm ci
Some checks failed
CI / build (push) Successful in 58s
CI / docker (push) Successful in 1m0s
CI / deploy (push) Failing after 22s

The CI runner is ARM64 and buildx was running npm ci under QEMU
amd64 emulation, causing a V8 crash. Use --platform=$BUILDPLATFORM
on the build stage so Node runs natively, matching the server Dockerfile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-13 14:08:09 +01:00
parent b40c197c21
commit c73b512cd9

View File

@@ -1,4 +1,4 @@
FROM node:22-alpine AS build
FROM --platform=$BUILDPLATFORM node:22-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./