fix: 限制Vite构建内存防止ARM64 QEMU OOM
ARM64交叉编译时QEMU模拟器内存不足导致Vite构建被杀死(SIGILL)。 设置NODE_OPTIONS=--max-old-space-size=2048限制Node.js堆内存。
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user