From 922e3d449f69f6c2020d85a5ebe471fdee8a029c Mon Sep 17 00:00:00 2001 From: niyyzf Date: Thu, 31 Jul 2025 20:23:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Dockerfile=20=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=20npm=20=E5=AE=89=E8=A3=85=E5=91=BD=E4=BB=A4=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20--legacy-peer-deps=20=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E4=BB=A5=E8=A7=A3=E5=86=B3=E4=BE=9D=E8=B5=96=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 88e316e..c8b8cf9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ WORKDIR /app # 安装依赖 COPY package.json ./ # 使用 npm 缓存来加速构建 -RUN npm install --prefer-offline --no-audit --no-fund --production=false +RUN npm install --prefer-offline --no-audit --no-fund --production=false --legacy-peer-deps # 构建阶段 FROM base AS builder