node-yarn-supervisor
574
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.
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.
/var/www/app is where your application code should reside.SUPERVISOR= SUPERVISORFLAGS=
Provides a means to wrap your application in a supervisor. Example:
SUPERVISOR=nodemonSUPERVISOR=nodemon SUPERVISORFLAGS="--watch /var/www/app/lib --delay 5"SUPERVISOR=supervisor SUPERVISORFLAGS="--non-interactive --timestamp --no-restart-on success --exec"8890Content type
Image
Digest
Size
42.8 MB
Last updated
about 9 years ago
docker pull meupatrocinio/docker-node-yarn-supervisor