Skip to content

Commit f922c79

Browse files
authored
fix(docs): add missing pnpm-workspace.yaml to Dockerfile (#2059)
For pnpm workspace projects, omitting `pnpm-workspace.yaml` causes `vp install --frozen-lockfile` to fail because pnpm cannot resolve `catalog:` in dependencies without it.
1 parent 638c447 commit f922c79

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/guide/docker.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ FROM ghcr.io/voidzero-dev/vite-plus:latest AS build
4848
WORKDIR /app
4949

5050
# Install dependencies first so this layer is cached across source changes.
51-
COPY --chown=vp:vp package.json pnpm-lock.yaml .node-version* ./
51+
COPY --chown=vp:vp package.json pnpm-lock.yaml pnpm-workspace.yaml .node-version* ./
5252
RUN vp install --frozen-lockfile
5353

5454
# Build. vp reads .node-version and provisions that exact Node.js automatically.
@@ -64,7 +64,7 @@ RUN cp "$(vp env which node | head -1)" /tmp/node
6464
# prune the already-installed devDependencies.
6565
FROM ghcr.io/voidzero-dev/vite-plus:latest AS deps
6666
WORKDIR /app
67-
COPY --chown=vp:vp package.json pnpm-lock.yaml .node-version* ./
67+
COPY --chown=vp:vp package.json pnpm-lock.yaml pnpm-workspace.yaml .node-version* ./
6868
RUN vp install --frozen-lockfile --prod
6969

7070
# --- runtime stage: small, glibc, no vp ---
@@ -110,7 +110,7 @@ server:
110110
```dockerfile [Dockerfile]
111111
FROM ghcr.io/voidzero-dev/vite-plus:latest AS build
112112
WORKDIR /app
113-
COPY --chown=vp:vp package.json pnpm-lock.yaml .node-version* ./
113+
COPY --chown=vp:vp package.json pnpm-lock.yaml pnpm-workspace.yaml .node-version* ./
114114
RUN vp install --frozen-lockfile
115115
COPY --chown=vp:vp . .
116116
RUN vp build

0 commit comments

Comments
 (0)