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:
@@ -18,6 +18,9 @@ COPY packages/shared/package.json packages/shared/
|
|||||||
COPY packages/server/package.json packages/server/
|
COPY packages/server/package.json packages/server/
|
||||||
COPY packages/web/package.json packages/web/
|
COPY packages/web/package.json packages/web/
|
||||||
|
|
||||||
|
# Copy patches (referenced by pnpm-lock.yaml)
|
||||||
|
COPY patches/ patches/
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pnpm install --frozen-lockfile || pnpm install
|
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/server/package.json packages/server/
|
||||||
COPY packages/web/package.json packages/web/
|
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)
|
# Install production dependencies only (plus tsx for running TS)
|
||||||
RUN pnpm install --frozen-lockfile || pnpm install
|
RUN pnpm install --frozen-lockfile || pnpm install
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user