From 21ade761d153ae71a429973a03aa60dd72ab056e Mon Sep 17 00:00:00 2001 From: "cnb.aUOqoEV4wEA" Date: Wed, 12 Nov 2025 23:10:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=96=87=E4=BB=B6=20cache.do?= =?UTF-8?q?ckerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cache.dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cache.dockerfile b/cache.dockerfile index 24767435..91066be2 100644 --- a/cache.dockerfile +++ b/cache.dockerfile @@ -1,8 +1,8 @@ FROM node:22-slim AS builder # --max-old-space-size -ENV PNPM_HOME="/pnpm" -ENV PATH="$PNPM_HOME:$PATH" + + ENV NODE_OPTIONS=--max-old-space-size=8192 ENV TZ=Asia/Shanghai @@ -17,8 +17,6 @@ COPY . /app RUN npm config set registry https://mirrors.cloud.tencent.com/npm/ RUN npm install -g pnpm@10.14.0 -RUN pnpm config set registry https://mirrors.cloud.tencent.com/npm/ - RUN pnpm install --frozen-lockfile RUN echo "Builder Success 🎉"