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:
@@ -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=api...
|
||||
|
||||
FROM base AS runner
|
||||
|
||||
Reference in New Issue
Block a user