fix(docker): downgrade Dockerfile to pnpm@10.13.1 (pnpm 11 needs Node 22)

Prior pin pnpm@11.1.3 was insufficient — pnpm 11.x itself imports
`node:sqlite` and requires Node 22.13+, not just 11.4 as the previous
blocker entry assumed. Local builds passed only because no `pnpm
install` ran on Node 20 (lockfile already resolved). VPS cold build
still crashes `ERR_UNKNOWN_BUILTIN_MODULE: node:sqlite`.

Switch to pnpm 10.13.1 — already cached on the dev host via corepack,
last major before the node:sqlite cache backend, reads lockfile v9.0
unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bastien ChanotandClaude Opus 4.7 committed 2026-05-21 06:14:36 +02:00
1 parent 202110ddd2
commit 990c8e700c
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@ FROM node:20-alpine AS builder
WORKDIR /app
# Install pnpm via corepack
RUN corepack enable && corepack prepare pnpm@11.1.3 --activate
RUN corepack enable && corepack prepare pnpm@10.13.1 --activate
# Copy manifests first for layer caching
COPY package.json pnpm-lock.yaml* ./