Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #57 from Battery-Intelligence-Lab/i47-node-modules
Browse files Browse the repository at this point in the history
#47 frontend-dev runs yarn install on docker-compose up
  • Loading branch information
martinjrobins authored Mar 1, 2023
2 parents dae48e2 + 1aed397 commit 30a0cee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 9 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ services:
context: ./frontend
ports:
- "3000:3000"
command: yarn start
volumes:
- ./frontend:/app
working_dir: /app
command: >
bash -c "
yarn install &&
yarn start
"
restart: unless-stopped

# old_worker:
Expand Down
4 changes: 0 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ services:
- app
ports:
- "80:80"
volumes:
- ./frontend:/app
- /app/node_modules/
working_dir: /app
env_file:
- ./.env
restart: unless-stopped
Expand Down

0 comments on commit 30a0cee

Please sign in to comment.