fix: copy patches directory in Dockerfile before pnpm install

The uiohook-napi patch is referenced in pnpm-lock.yaml and must
be present before pnpm install runs in both builder and runtime stages.
This commit is contained in:
Jannis Braun
2026-03-22 23:54:17 +01:00
parent e4f6f9a4c4
commit 4532cc6708
+6
View File
@@ -18,6 +18,9 @@ COPY packages/shared/package.json packages/shared/
COPY packages/server/package.json packages/server/
COPY packages/web/package.json packages/web/
# Copy patches (referenced by pnpm-lock.yaml)
COPY patches/ patches/
# Install dependencies
RUN pnpm install --frozen-lockfile || pnpm install
@@ -51,6 +54,9 @@ COPY packages/shared/package.json packages/shared/
COPY packages/server/package.json packages/server/
COPY packages/web/package.json packages/web/
# Copy patches (referenced by pnpm-lock.yaml)
COPY patches/ patches/
# Install production dependencies only (plus tsx for running TS)
RUN pnpm install --frozen-lockfile || pnpm install