2.0.3 • Published 6 years ago
docker-compose-file v2.0.3
docker-compose-file
install
npm i -g docker-compose-file
How to use
1.1 generate Dockerfile and docker-compose.yml
docker-compose-file init -p port -m npm/yarn -d dest directory -n project name
e.g.
docker-compose-file init -p 10017 -m yarn -n project-name -d dest-directory
This command generated four files.
1.2 set build commands
in your package.json, write three build commands.
- npm run build:development
- npm run build:test
- npm run build:production