diff --git a/.dockerignore b/.dockerignore index 5c2eff43b..bf9f55035 100644 --- a/.dockerignore +++ b/.dockerignore @@ -35,10 +35,14 @@ coverage /docs/ *.md -# Only the web workspace is used by Dockerfile.web. Default-exclude future -# app workspaces so they do not silently enter the build context. +# Dockerfile.web needs the web workspace and root dependency patch inputs. +# Default-exclude other app files so they do not enter the build context. /apps/* !/apps/web/ +!/apps/mobile +/apps/mobile/* +!/apps/mobile/patches +!/apps/mobile/patches/** # Repository-only tooling /.github/ diff --git a/.vercelignore b/.vercelignore index 53f3a821b..1e4b4a36b 100644 --- a/.vercelignore +++ b/.vercelignore @@ -36,6 +36,11 @@ _features !/apps/web/** !/apps/docs !/apps/docs/** +# Root pnpm patchedDependencies needs these files even for frontend-only installs. +!/apps/mobile +/apps/mobile/* +!/apps/mobile/patches +!/apps/mobile/patches/** /scripts/ *.log diff --git a/Dockerfile.web b/Dockerfile.web index 73572a767..f4eba1036 100644 --- a/Dockerfile.web +++ b/Dockerfile.web @@ -8,6 +8,8 @@ COPY pnpm-lock.yaml pnpm-workspace.yaml package.json turbo.json .npmrc ./ COPY apps/web/package.json apps/web/ # postinstall runs fumadocs-mdx which reads apps/web/source.config.ts COPY apps/web/source.config.ts apps/web/source.config.ts +# Root pnpm patchedDependencies is read even without the mobile workspace. +COPY apps/mobile/patches/ apps/mobile/patches/ COPY packages/core/package.json packages/core/ COPY packages/ui/package.json packages/ui/ COPY packages/views/package.json packages/views/