Dockerfile: run the Node build stage on the builder's platform

Cross-building under emulation failed on the arm64 runner; the stage only emits static files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
mattandClaude Sonnet 5.5 committed 2026-11-20 23:30:30 +00:00
1 parent 8c36460dea
commit 15e71e0e70
1 file changed
+3 -1
+3 -1
View File
@@ -1,4 +1,6 @@
FROM node:22-alpine AS build # The build stage only emits static files, so it runs on the builder's own architecture; only the nginx stage
# takes the target platform (linux/amd64, set in the release workflow). No emulation needed.
FROM --platform=$BUILDPLATFORM node:22-alpine AS build
WORKDIR /app WORKDIR /app
COPY package.json package-lock.json ./ COPY package.json package-lock.json ./
RUN npm ci RUN npm ci