From abc0113c8ed525ce2289558be9527d3ff8079f49 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Wed, 13 May 2026 18:48:09 +0200 Subject: [PATCH] chore(docker): defer pnpm version to packageManager field Drop the explicit pnpm@latest prepare step and let corepack pick up the pinned version from package.json on first invocation, so the Docker build can't drift away from the local toolchain. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b8879f7..df5db4f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # ---- Stage 1: deps (only invalidated when lockfile changes) ---- FROM node:22-alpine AS deps -RUN corepack enable && corepack prepare pnpm@latest --activate +RUN corepack enable WORKDIR /app @@ -13,7 +13,7 @@ RUN pnpm install --frozen-lockfile # ---- Stage 2: build (invalidated on any source change) ---- FROM node:22-alpine AS builder -RUN corepack enable && corepack prepare pnpm@latest --activate +RUN corepack enable WORKDIR /app