From a42627e1fc4c110b8bde37e16a753198db2741de Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 18 Apr 2026 14:53:26 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=9B=B4=E6=96=B0=E6=9E=84?= =?UTF-8?q?=E5=BB=BAcicd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index dc92465..1efe10a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,9 @@ FROM registry.cn-shenzhen.aliyuncs.com/zuoge-proxy/node:20-alpine AS build + +# 设置环境变量,限制 Node.js 内存并禁用 source map +ENV NODE_OPTIONS="--max-old-space-size=1024" +ENV GENERATE_SOURCEMAP=false + WORKDIR /app COPY package*.json yarn.lock ./ RUN yarn install --frozen-lockfile