docker-development-node-runner
v0.0.5Docker development node runner
An opinionated helper script for running a node app in a container during development.
Features
- Builds app and runs it
- When files change the app is killed, rebuilt and restarted
- If the app crashes the error is displayed and restarted when files change again
- To speed up expensive processes (e.g. preprocessing) app source code is copied from docker volume to local docker fs when files change
Requirements
NodeJS 6+
Usage
Apps expose functionality via package.json
's scripts
key:
build
: runs before the app is started and restartedstart
: starts the app