We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d7d856 commit 2c51384Copy full SHA for 2c51384
1 file changed
Dockerfile
@@ -1,5 +1,6 @@
1
# 第一阶段:构建前端主题
2
-FROM node:20-alpine AS frontend-builder
+# 前端产物与 CPU 架构无关,使用原生构建平台避免在 QEMU 中运行 Node/pnpm。
3
+FROM --platform=$BUILDPLATFORM node:20-alpine AS frontend-builder
4
5
RUN apk add --no-cache git python3 make g++
6
0 commit comments