fix: build frontend on native Docker platform

This commit is contained in:
Lan committed 2026-07-10 17:48:54 +08:00
1 parent 8d7d856c62
commit 2c51384c80
1 file changed
+2 -1
+2 -1
View File
@@ -1,5 +1,6 @@
# 第一阶段:构建前端主题
FROM node:20-alpine AS frontend-builder
# 前端产物与 CPU 架构无关,使用原生构建平台避免在 QEMU 中运行 Node/pnpm。
FROM --platform=$BUILDPLATFORM node:20-alpine AS frontend-builder
RUN apk add --no-cache git python3 make g++