$ npm run build
$ npm run dev
$ docker-compose build
$ docker-compose up -d
-
This file is used to overwrite some commands we have in our docker-compose base when we run the production command, so we can run different working environments.
-
When we run the production command, docker will run the entire Dockerfile, run the base, production, compile our app, and after it's all done it will run the docker-compose-prod.yml command:
$ node build/index.js
to start our production build application.
- This command is for development mode
$ docker-compose up -d
we will use:
- `$ make up`
- This command is to close our containers
$ docker-compose down
we will use:
- `$ make down`
- To start the app with our docker-compose-prod.yml we run the following command. The -f tells you the file we want to run
$ docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
we will use:
- `$ make up-prod`