Skip to content

Commit 2c51384

Browse files
committed
fix: build frontend on native Docker platform
1 parent 8d7d856 commit 2c51384

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# 第一阶段:构建前端主题
2-
FROM node:20-alpine AS frontend-builder
2+
# 前端产物与 CPU 架构无关,使用原生构建平台避免在 QEMU 中运行 Node/pnpm。
3+
FROM --platform=$BUILDPLATFORM node:20-alpine AS frontend-builder
34

45
RUN apk add --no-cache git python3 make g++
56

0 commit comments

Comments
 (0)