From e37a69601241992bdfc26678c9f9c7b3890f546d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Men=C3=A9ndez=20Mosegui?= <98897888+uo282892@users.noreply.github.com> Date: Thu, 4 May 2023 01:32:50 +0200 Subject: [PATCH] Updated Dockerfile --- restapi/server.ts | 4 +--- webapp/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/restapi/server.ts b/restapi/server.ts index 20b0889c..d666e6e4 100644 --- a/restapi/server.ts +++ b/restapi/server.ts @@ -1,4 +1,4 @@ -import { Application, RequestHandler } from "express"; +import express, { Application, RequestHandler } from "express"; import cors from 'cors'; import bp from 'body-parser'; import promBundle from 'express-prom-bundle'; @@ -7,8 +7,6 @@ import db_uri from "./settings"; import { readFileSync } from "fs"; import { createServer } from "https" - -const express = require("express") const app: Application = express(); const portHttp: number = 5000; const portHttps: number = 5000; diff --git a/webapp/Dockerfile b/webapp/Dockerfile index 659c2edf..c8fd6b6b 100644 --- a/webapp/Dockerfile +++ b/webapp/Dockerfile @@ -13,4 +13,4 @@ RUN npm run build #Execute npm run prod to run the server #CMD [ "npm", "run", "prod" ] -CMD node server.js \ No newline at end of file +CMD [ "npm", "start" ] \ No newline at end of file