Skip to content

Commit 97e1216

Browse files
committed
fix(ci): copy web app sources into deps stage for typegen postinstall
The web postinstall runs react-router typegen, which needs app/root.tsx, app/routes and the config files that the deps stage previously omitted. Copy them in so dependency install succeeds during image build.
1 parent 48fa195 commit 97e1216

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/web/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ WORKDIR /app
99
FROM base AS deps
1010
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml tsconfig.base.json ./
1111
COPY apps/web/package.json apps/web/package.json
12+
COPY apps/web/app apps/web/app
13+
COPY apps/web/react-router.config.ts apps/web/react-router.config.ts
14+
COPY apps/web/vite.config.ts apps/web/vite.config.ts
15+
COPY scripts scripts
1216
COPY packages/db/package.json packages/db/package.json
1317
COPY packages/shared/package.json packages/shared/package.json
1418
RUN pnpm install --store-dir=$PNPM_STORE_DIR --frozen-lockfile --config.verify-store-integrity=false

0 commit comments

Comments
 (0)