docker-compose-file
v2.0.3
Published
[![npm package](https://img.shields.io/npm/v/docker-compose-file.svg)](https://www.npmjs.org/package/docker-compose-file)
Downloads
26
Readme
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