diff --git a/Dockerfile b/Dockerfile index 5d7efa0..8c6da47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 COPY package.json package-lock.json ./ RUN npm ci