From 2c51384c80a9ff3f4eb98eb876759b8949dfae89 Mon Sep 17 00:00:00 2001 From: Lan Date: Fri, 10 Jul 2026 17:48:54 +0800 Subject: [PATCH] fix: build frontend on native Docker platform --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7db69db..0a1778c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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++