From 18385c245c0822a073570aa06831eb1b81fd578b Mon Sep 17 00:00:00 2001 From: unownone Date: Thu, 14 Dec 2023 12:56:49 +0530 Subject: [PATCH] fix: resolve #3 update dockerfile --- Dockerfile | 2 ++ Dockerfile.ECS.Alpha | 2 ++ docker-compose.yml | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index abdac5e..c6c905c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,5 +8,7 @@ RUN npm install COPY . . +RUN npm run build + EXPOSE 8000 CMD ["npm","start"] \ No newline at end of file diff --git a/Dockerfile.ECS.Alpha b/Dockerfile.ECS.Alpha index 37e854c..9b03a24 100644 --- a/Dockerfile.ECS.Alpha +++ b/Dockerfile.ECS.Alpha @@ -8,5 +8,7 @@ RUN npm install COPY . . +RUN npm run build + EXPOSE 80 CMD ["npm","start", "--port 80"] diff --git a/docker-compose.yml b/docker-compose.yml index 75b1468..b1fa79a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,8 +6,8 @@ services: dockerfile: Dockerfile ports: - - 8000:8000 + - 8001:8000 env_file: - .env - restart: unless-stopped \ No newline at end of file + restart: unless-stopped