fix: use pnpm instead of npm in Dockerfile

Project uses pnpm-lock.yaml, updated Dockerfile to use pnpm with corepack.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2025-12-07 19:50:45 -08:00
parent 8bcb6a978a
commit 6a9a6659bf
1 changed files with 6 additions and 3 deletions

View File

@ -1,12 +1,15 @@
FROM node:20-alpine AS base
# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
# Install dependencies only when needed
FROM base AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
# Rebuild the source code only when needed
FROM base AS builder
@ -17,7 +20,7 @@ COPY . .
ENV NEXT_TELEMETRY_DISABLED=1
ENV NODE_ENV=production
RUN npm run build
RUN pnpm run build
# Production image, copy all the files and run next
FROM base AS runner