Sign inSign up

meupatrocinio/docker-node-yarn-supervisor

By meupatrocinio

•Updated about 9 years ago

node-yarn-supervisor

Image
0

584

meupatrocinio/docker-node-yarn-supervisor repository overview

⁠NodeJS

This container runs NodeJS on Alpine Linux⁠.

It is also bundled with Node_Supervisor⁠ and Nodemon⁠.
Both are installed globally if you'd like to use them.

⁠Yarn Install

During initialization, if file /var/www/app/package.json exists, and if /var/www/app/node_modules is either empty or not there, this container will automatically run yarn install within /var/www/app to install all dependencies.

Additionally, if /var/www/app/package.json exists, the "start" script will be ran (which defaults to running "node server.js").

You can also override the CMD or provide a different command via CLI.

⁠Volumes

  • /var/www/app is where your application code should reside.

⁠Environment Variables

SUPERVISOR= SUPERVISORFLAGS=

Provides a means to wrap your application in a supervisor. Example:

  • SUPERVISOR=nodemon
  • SUPERVISOR=nodemon SUPERVISORFLAGS="--watch /var/www/app/lib --delay 5"
  • SUPERVISOR=supervisor SUPERVISORFLAGS="--non-interactive --timestamp --no-restart-on success --exec"

⁠Exposed Ports

  • 8890

Tag summary

Content type

Image

Digest

Size

42.8 MB

Last updated

about 9 years ago

docker pull meupatrocinio/docker-node-yarn-supervisor