From 289b1855d49baba116905a55e9628563cec27631 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Mon, 7 Nov 2022 19:17:35 +0530 Subject: [PATCH] change deploy command to use node directly instead --- Dockerfile | 2 +- docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f1df9d9..1f9b0d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,6 @@ ENV DB_NAME mx ENV JWT_SECRET secret ENV JWT_EXPIRY 1h -CMD ["sh", "-c", "DB_HOST=${DB_HOST} DB_PORT=${DB_PORT} DB_USER=${DB_USER} DB_PASS=${DB_PASS} DB_NAME=${DB_NAME} JWT_SECRET=${JWT_SECRET} JWT_EXPIRY=${JWT_EXPIRY} pnpm run start:prod --host 0.0.0.0"] +CMD ["sh", "-c", "DB_HOST=${DB_HOST} DB_PORT=${DB_PORT} DB_USER=${DB_USER} DB_PASS=${DB_PASS} DB_NAME=${DB_NAME} JWT_SECRET=${JWT_SECRET} JWT_EXPIRY=${JWT_EXPIRY} node dist/main --host 0.0.0.0"] EXPOSE 3000 diff --git a/docker-compose.yml b/docker-compose.yml index 222428d..3b91bfc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,3 +14,5 @@ services: container_name: app depends_on: - db + ports: + - 3000:3000