Skip to content

Commit c8f4737

Browse files
committed
fix(docs): docker
1 parent c9d10d7 commit c8f4737

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

packages/docs/.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.vitepress/dist
3+
.vitepress/cache

packages/docs/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22
FROM node:22-bookworm-slim AS builder
33

44
RUN apt-get update && apt-get upgrade -y
5-
RUN npm install -g pnpm
5+
# Pinned: an unpinned pnpm silently follows major releases
6+
RUN npm install -g pnpm@11.22.0
67

78
WORKDIR /app
89

910
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
1016
RUN pnpm install
1117

1218
COPY . .

0 commit comments

Comments
 (0)