Skip to content

Commit

Permalink
Moved setting environment vars to dockerfile and add new volume
Browse files Browse the repository at this point in the history
  • Loading branch information
this-Aditya committed Sep 3, 2024
1 parent d72af9a commit 543c236
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ COPY package*.json ./

RUN npm install

ENV PORT=3000

EXPOSE 3000

CMD ["npm", "run", "dev", "--", "-p", "3000"]
3 changes: 1 addition & 2 deletions docker-compose.live-reload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ services:
- '3000:3000'
volumes:
- .:/app
environment:
- PORT=3000
- /app/node_modules

0 comments on commit 543c236

Please sign in to comment.