fix docker setup
This commit is contained in:
@@ -2,25 +2,13 @@ FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install bash for better shell capabilities
|
||||
ENV NPM_CONFIG_FUND=false \
|
||||
NPM_CONFIG_AUDIT=false \
|
||||
NPM_CONFIG_UPDATE_NOTIFIER=false
|
||||
|
||||
RUN apk add --no-cache bash
|
||||
|
||||
# Copy package manifests and install dependencies (incl. workspaces)
|
||||
COPY package.json package-lock.json ./
|
||||
COPY apps/api/package.json apps/api/package.json
|
||||
RUN npm ci --workspaces --include-workspace-root
|
||||
RUN find ./node_modules -name "ts-node-dev" -print || true # Debugging line
|
||||
|
||||
# Copy sources for development (monorepo)
|
||||
COPY apps/api apps/api/
|
||||
COPY core core/
|
||||
COPY adapters adapters/
|
||||
COPY apps/api/tsconfig.json apps/api/
|
||||
COPY tsconfig.base.json ./
|
||||
|
||||
EXPOSE 3000
|
||||
EXPOSE 9229
|
||||
|
||||
# Command to run the NestJS application in development with hot-reloading
|
||||
# Run from the correct workspace context
|
||||
CMD ["npm", "run", "start:dev", "--workspace=@gridpilot/api"]
|
||||
CMD ["sh", "-lc", "npm run start:dev --workspace=@gridpilot/api"]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import type { ListLeagueScoringPresetsResult, LeagueScoringPreset } from '@core/racing/application/use-cases/ListLeagueScoringPresetsUseCase';
|
||||
import type { ListLeagueScoringPresetsResult } from '@core/racing/application/use-cases/ListLeagueScoringPresetsUseCase';
|
||||
import type { LeagueScoringPresetsDTO } from '../dtos/LeagueScoringPresetsDTO';
|
||||
|
||||
export type LeagueScoringPresetsViewModel = LeagueScoringPresetsDTO;
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Provider } from '@nestjs/common';
|
||||
import { SponsorService } from './SponsorService';
|
||||
|
||||
// Import core interfaces
|
||||
import { NotificationService } from '@core/notifications/application/ports/NotificationService';
|
||||
import type { NotificationService } from '@core/notifications/application/ports/NotificationService';
|
||||
import type { IPaymentRepository } from '@core/payments/domain/repositories/IPaymentRepository';
|
||||
import type { IWalletRepository } from '@core/payments/domain/repositories/IWalletRepository';
|
||||
// Remove the missing import
|
||||
@@ -170,7 +170,7 @@ export const SponsorProviders: Provider[] = [
|
||||
{
|
||||
provide: NOTIFICATION_SERVICE_TOKEN,
|
||||
useFactory: (logger: Logger): NotificationService => ({
|
||||
async sendNotification(command: any): Promise<void> {
|
||||
async sendNotification(command: Parameters<NotificationService['sendNotification']>[0]): Promise<void> {
|
||||
logger.info('[InMemoryNotificationService] sendNotification', { command });
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user