chore: migrate frontend package manager from npm to pnpm

This commit is contained in:
sagitchu
2026-04-22 11:02:43 +08:00
parent efaf920e51
commit e7c967df00
9 changed files with 9024 additions and 21 deletions
+3 -3
View File
@@ -3,11 +3,11 @@ FROM node:20.19.0 AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY package.json pnpm-lock.yaml* ./
RUN corepack enable pnpm && pnpm install --frozen-lockfile
COPY . .
RUN npm run build
RUN pnpm run build
# 生产阶段
FROM nginx:stable-alpine AS production-stage