From 055cb56e2def5e861374565506d8cc70d94a4402 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 3 May 2026 18:03:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=99=90=E5=88=B6Vite=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E5=86=85=E5=AD=98=E9=98=B2=E6=AD=A2ARM64=20QEMU=20OOM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ARM64交叉编译时QEMU模拟器内存不足导致Vite构建被杀死(SIGILL)。 设置NODE_OPTIONS=--max-old-space-size=2048限制Node.js堆内存。 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 21f1cfe..b50f415 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ RUN pnpm install --frozen-lockfile COPY frontend/ ./ +ENV NODE_OPTIONS="--max-old-space-size=2048" RUN pnpm vite build FROM golang:1.21-alpine AS backend-builder