From 6a9a6659bfe9332c98b98da6c8c3b48a64241c9e Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Sun, 7 Dec 2025 19:50:45 -0800 Subject: [PATCH] fix: use pnpm instead of npm in Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c728cf0..a6f73af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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