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:
1 parent
8c36460dea
commit
15e71e0e70
1 file changed
+3
-1
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user