fix(api,orchestrator): fix dependency injection and Docker build issues
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
API: - Add AuthModule import to RunnerJobsModule - Fixes: Nest can't resolve dependencies of AuthGuard Orchestrator: - Remove --prod flag from dependency installation - Copy full node_modules tree to production stage - Align Dockerfile with API pattern for monorepo builds - Fixes: Cannot find module '@nestjs/core' Both services now match the working API Dockerfile pattern.
This commit is contained in:
@@ -3,6 +3,7 @@ import { RunnerJobsController } from "./runner-jobs.controller";
|
||||
import { RunnerJobsService } from "./runner-jobs.service";
|
||||
import { PrismaModule } from "../prisma/prisma.module";
|
||||
import { BullMqModule } from "../bullmq/bullmq.module";
|
||||
import { AuthModule } from "../auth/auth.module";
|
||||
|
||||
/**
|
||||
* Runner Jobs Module
|
||||
@@ -11,7 +12,7 @@ import { BullMqModule } from "../bullmq/bullmq.module";
|
||||
* for asynchronous job processing.
|
||||
*/
|
||||
@Module({
|
||||
imports: [PrismaModule, BullMqModule],
|
||||
imports: [PrismaModule, BullMqModule, AuthModule],
|
||||
controllers: [RunnerJobsController],
|
||||
providers: [RunnerJobsService],
|
||||
exports: [RunnerJobsService],
|
||||
|
||||
Reference in New Issue
Block a user