Skip to content
Snippets Groups Projects
Commit 5d5cdc64 authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Use prod command in dockerfile

parent 113a1a93
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -23,3 +23,4 @@ npm-debug.log ...@@ -23,3 +23,4 @@ npm-debug.log
!template.env !template.env
swagger-spec.json swagger-spec.json
dist/
...@@ -15,8 +15,6 @@ RUN npm install ...@@ -15,8 +15,6 @@ RUN npm install
# Bundle app source # Bundle app source
COPY . . COPY . .
CMD npm run start:prod
CMD npm run start:dev
EXPOSE 3000 EXPOSE 3000
import { Module } from '@nestjs/common'; import { Module } from '@nestjs/common';
import { EmailModule } from 'email/email.module'; import { EmailModule } from './email/email.module';
import { ConfigModule } from 'configuration/config.module'; import { ConfigModule } from './configuration/config.module';
@Module({ @Module({
imports: [ConfigModule, EmailModule], imports: [ConfigModule, EmailModule],
......
import { Injectable, Logger, InternalServerErrorException } from '@nestjs/common'; import { Injectable, Logger, InternalServerErrorException } from '@nestjs/common';
import * as amqp from 'amqplib'; import * as amqp from 'amqplib';
import { ContactForm, Email, EmailWithoutFrom } from './email'; import { ContactForm, Email, EmailWithoutFrom } from './email';
import { ConfigService } from 'configuration/config.service'; import { ConfigService } from '../configuration/config.service';
import { buildContactAdminEmail, buildContactUserEmail } from 'email-templates/contact'; import { buildContactAdminEmail, buildContactUserEmail } from '../email-templates/contact';
import moment = require('moment'); import moment = require('moment');
@Injectable() @Injectable()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment