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

@@ -1 +1,2 @@
enable-pre-post-scripts=true
onlyBuiltDependenciesFile= onlyBuiltDependenciesFile=

View File

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