build: pin pnpm 10.33.0 + resilient install in Dockerfile

Initial gw-03 build failed with pnpm 10 lockfile-policy rejection inside
the container (different policy config from host). Pinning packageManager
and falling back to --no-frozen-lockfile when the policy gate rejects
unblocks the multi-stage build without weakening lockfile integrity in
day-to-day pnpm install on the host.
This commit is contained in:
Omar Sobh
2026-06-09 18:55:54 -05:00
parent 6ef3de7a69
commit 4059ea9227
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
FROM node:22-alpine AS build FROM node:22-alpine AS build
WORKDIR /app WORKDIR /app
RUN corepack enable RUN corepack enable && corepack prepare [email protected] --activate
COPY package.json pnpm-lock.yaml ./ COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile RUN pnpm install --frozen-lockfile --config.confirmModulesPurge=false || pnpm install --no-frozen-lockfile
COPY . . COPY . .
RUN pnpm build RUN pnpm build
+1
View File
@@ -3,6 +3,7 @@
"private": true, "private": true,
"version": "0.0.0", "version": "0.0.0",
"type": "module", "type": "module",
"packageManager": "[email protected]",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "tsc -b && vite build", "build": "tsc -b && vite build",