···11-FROM node:22-slim AS build
11+# syntax=docker/dockerfile:1
22+#
33+# Multi-arch build using cross-compilation pattern:
44+# - Build stage runs on CI host's native platform (linux/amd64) using $BUILDPLATFORM
55+# This avoids QEMU arm64 emulation which segfaults during npx vite build (exit 139)
66+# - Final stage runs on the target platform (linux/amd64 or linux/arm64)
77+# and just copies pre-built JS artifacts - no compilation needed
88+99+FROM --platform=$BUILDPLATFORM node:22-slim AS build
210311WORKDIR /app
412COPY package.json package-lock.json ./