There was an error while loading. Please reload this page.
1 parent c9d10d7 commit c8f4737Copy full SHA for c8f4737
2 files changed
packages/docs/.dockerignore
@@ -0,0 +1,3 @@
1
+node_modules
2
+.vitepress/dist
3
+.vitepress/cache
packages/docs/Dockerfile
@@ -2,11 +2,17 @@
FROM node:22-bookworm-slim AS builder
4
RUN apt-get update && apt-get upgrade -y
5
-RUN npm install -g pnpm
+# Pinned: an unpinned pnpm silently follows major releases
6
+RUN npm install -g pnpm@11.22.0
7
8
WORKDIR /app
9
10
COPY package.json ./
11
+
12
+# esbuild needs its postinstall to fetch the binary. pnpm 11 fails on ignored
13
+# build scripts instead of warning like pnpm 10 did, and the repo's allowBuilds
14
+# lives in the root pnpm-workspace.yaml, which is outside this build context.
15
+RUN printf 'allowBuilds:\n esbuild: true\n' > pnpm-workspace.yaml
16
RUN pnpm install
17
18
COPY . .
0 commit comments