Skip to content

Commit

Permalink
chore: Realiza build dos arquivos no container
Browse files Browse the repository at this point in the history
Adiciona script que realiza instalação de dependências no momento
da criação do container
  • Loading branch information
joaohenrique-hs committed May 26, 2020
1 parent 7da159c commit 9cbe944
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ services:
working_dir: "/home/node/app"
volumes:
- ./:/home/node/app
command: "npm start"
command:
- sh
- -c
- |
npm install
npm start
networks:
- backend

Expand All @@ -35,4 +40,4 @@ services:

networks:
backend:
driver: "bridge"
driver: "bridge"

0 comments on commit 9cbe944

Please sign in to comment.