Skip to content

Commit d06ca40

Browse files
msukkariclaude
andcommitted
fix: run prisma generate after skip-build install in Docker
The --mode=skip-build flag skips postinstall hooks including prisma generate, so the Prisma client types are missing in web-builder and backend-builder stages. Run prisma:generate explicitly after install. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 214528f commit d06ca40

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ COPY ./packages/queryLanguage/package.json ./packages/queryLanguage/package.json
107107
COPY ./packages/backend/package.json ./packages/backend/package.json
108108
COPY ./packages/mcp/package.json ./packages/mcp/package.json
109109

110-
RUN yarn install --mode=skip-build
110+
RUN yarn install --mode=skip-build && \
111+
yarn workspace @sourcebot/db prisma:generate
111112

112113
# Step 2: Copy pre-built shared libraries.
113114
COPY --from=shared-libs-builder /app/packages/db ./packages/db
@@ -157,7 +158,8 @@ COPY ./packages/queryLanguage/package.json ./packages/queryLanguage/package.json
157158
COPY ./packages/web/package.json ./packages/web/package.json
158159
COPY ./packages/mcp/package.json ./packages/mcp/package.json
159160

160-
RUN yarn install --mode=skip-build
161+
RUN yarn install --mode=skip-build && \
162+
yarn workspace @sourcebot/db prisma:generate
161163

162164
# Step 2: Copy pre-built shared libraries and backend source.
163165
COPY --from=shared-libs-builder /app/packages/db ./packages/db

0 commit comments

Comments
 (0)