From 7dccde72f83cb9ca9a95f57eac1b476d85ac66f9 Mon Sep 17 00:00:00 2001 From: Bastien Chanot Date: Thu, 21 May 2026 06:04:35 +0200 Subject: [PATCH] fix(docker): pin pnpm@11.1.3 to keep Node 20 compatibility `corepack prepare pnpm@latest` now resolves to pnpm >=11.4, which imports `node:sqlite` and requires Node 22.13+. The builder stage runs `node:20-alpine`, so the install crashes with `ERR_UNKNOWN_BUILTIN_MODULE: node:sqlite`. Pinning to the same version the host already uses (pnpm 11.1.3) restores a reproducible, Node-20-safe build. Co-Authored-By: Claude Opus 4.7 (1M context) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9016b613..3650a4a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM node:20-alpine AS builder WORKDIR /app # Install pnpm via corepack -RUN corepack enable && corepack prepare pnpm@latest --activate +RUN corepack enable && corepack prepare pnpm@11.1.3 --activate # Copy manifests first for layer caching COPY package.json pnpm-lock.yaml* ./