From 00693e18fbeab88e821a8a45524d7a3d0e01c2f5 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Tue, 1 Nov 2022 13:14:45 +0530 Subject: [PATCH] fix dockerfile --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8d41a2e..91d7bcd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,13 +19,13 @@ COPY --from=builder /app/package-lock.json ./package-lock.json COPY --from=builder /app/dist ./dist COPY --from=builder /app/node_modules ./node_modules -ENV DB_HOST -ENV DB_PORT -ENV DB_USER -ENV DB_PASS -ENV DB_NAME -ENV JWT_SECRET -ENV JWT_EXPIRY +ENV DB_HOST db +ENV DB_PORT 3306 +ENV DB_USER root +ENV DB_PASS secret +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} npm run start:prod --host 0.0.0.0"]