Skip to content

Commit cd8d9b6

Browse files
jordanburkeclaude
andcommitted
fix(docker): copy pnpm-workspace.yaml and bump corepack pnpm to 11.5.2
pnpm 11's minimumReleaseAgeExclude/allowBuilds/publicHoistPattern now live in pnpm-workspace.yaml, which the Dockerfile wasn't copying — so the in-image pnpm install rejected @types/node@22.19.20 under the 1-day supply-chain gate. Also align the corepack prepare pin (was 10.29.3) with packageManager (11.5.2). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c683d1a commit cd8d9b6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
FROM node:22-alpine AS builder
33

44
# Install pnpm
5-
RUN corepack enable && corepack prepare pnpm@10.29.3 --activate
5+
RUN corepack enable && corepack prepare pnpm@11.5.2 --activate
66

77
# Set working directory
88
WORKDIR /app
99

1010
# Copy package files
11-
COPY package.json pnpm-lock.yaml ./
11+
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
1212

1313
# Install dependencies
1414
RUN pnpm install --frozen-lockfile
@@ -24,7 +24,7 @@ RUN pnpm build
2424
FROM node:22-alpine
2525

2626
# Install pnpm
27-
RUN corepack enable && corepack prepare pnpm@10.29.3 --activate
27+
RUN corepack enable && corepack prepare pnpm@11.5.2 --activate
2828

2929
# Create non-root user
3030
RUN addgroup -g 1001 -S nodejs && \
@@ -34,7 +34,7 @@ RUN addgroup -g 1001 -S nodejs && \
3434
WORKDIR /app
3535

3636
# Copy package files
37-
COPY package.json pnpm-lock.yaml ./
37+
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
3838

3939
# Install production dependencies only
4040
RUN pnpm install --frozen-lockfile --prod

0 commit comments

Comments
 (0)