From 76363d0da7c48c04b04b73943bfdd3230a65dccc Mon Sep 17 00:00:00 2001 From: theluyuan <1162963624@qq.com> Date: Thu, 30 Oct 2025 23:41:52 +0800 Subject: [PATCH] Update Dockerfile to install dependencies using pnpm instead of npm --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b04188c..29365ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,12 +21,12 @@ RUN apk add --no-cache \ # 配置npm使用国内镜像源 RUN npm config set registry https://registry.npmmirror.com - +RUN npm -g i pnpm # 复制package.json和package-lock.json(如果存在) COPY package*.json ./ # 安装项目依赖 -RUN npm i +RUN pnpm i # 复制项目文件 COPY . .