build(docker): add db:generate step before building

Ensure Prisma client and schemas are generated before building the application to prevent runtime errors
This commit is contained in:
Yuu Ottosoka
2025-07-12 16:17:39 +03:00
parent 8d6fc0c5e9
commit 701e9c0ef8
2 changed files with 8 additions and 0 deletions

View File

@@ -35,6 +35,10 @@ RUN npm ci
# Build the project
COPY --from=pruner /app/out/full/ .
# Generate Prisma client and schemas before building
RUN npm run db:generate --workspace=@repo/db
RUN turbo run build --filter=bot...
FROM base AS runner