fix:修复npm

This commit is contained in:
2026-05-19 16:50:42 +08:00
parent 2b2c1ca6f7
commit 325682378e
2 changed files with 3 additions and 5 deletions

View File

@@ -4,10 +4,7 @@ FROM node:22-alpine AS builder
WORKDIR /app
ENV PNPM_APPROVE_BUILDS=*
# 先装依赖(缓存最大化)
COPY package.json pnpm-lock.yaml ./
COPY package.json pnpm-lock.yaml .npmrc ./
RUN corepack enable && pnpm install --frozen-lockfile
# Prisma 客户端生成