/docker

Egg official docker image

Primary LanguageJavaScript

docker-boilerplate

Egg.js docker boilerplate.

QuickStart

see egg docs for more detail.

Development

$ npm i
$ npm run dev
$ open http://localhost:7001/

Deploy

$ npm start
$ npm stop

Docker

$ docker build -t egg-boilerplate .
$ docker run -p 7001:7001 egg-boilerplate

npm scripts

  • Use npm run lint to check code style.
  • Use npm test to run unit test.
  • Use npm run autod to auto detect dependencies upgrade, see autod for more detail.