diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 14163ed..9dc8041 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -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 diff --git a/apps/bot/Dockerfile b/apps/bot/Dockerfile index 50252bf..ef22e73 100644 --- a/apps/bot/Dockerfile +++ b/apps/bot/Dockerfile @@ -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