This commit is contained in:
MarkLo 2025-11-21 22:52:52 +08:00
parent e216728b2c
commit e896968aa8
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@ RUN pnpm install --frozen-lockfile
# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
# Install pnpm in builder stage
RUN corepack enable && corepack prepare pnpm@latest --activate
COPY --from=deps /app/node_modules ./node_modules
COPY . .