From 543c236641d0a9be62c205f9e4e44c761b681643 Mon Sep 17 00:00:00 2001 From: this-Aditya Date: Tue, 3 Sep 2024 17:05:12 +0530 Subject: [PATCH] Moved setting environment vars to dockerfile and add new volume --- Dockerfile.dev | 2 ++ docker-compose.live-reload.yml | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.dev b/Dockerfile.dev index 77334de..27c6f63 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -8,6 +8,8 @@ COPY package*.json ./ RUN npm install +ENV PORT=3000 + EXPOSE 3000 CMD ["npm", "run", "dev", "--", "-p", "3000"] diff --git a/docker-compose.live-reload.yml b/docker-compose.live-reload.yml index 0f567d7..ad57436 100644 --- a/docker-compose.live-reload.yml +++ b/docker-compose.live-reload.yml @@ -8,5 +8,4 @@ services: - '3000:3000' volumes: - .:/app - environment: - - PORT=3000 + - /app/node_modules