This Docker image supports:
- Bower for dependency management.
- Gulp for task automation.
- Coffee-Script for compile coffe files.
- PM2 for Process Management for NodeJS applications.
Your need to create at least two volumes. One directory for your application files and other one for script files on the path
/scripts. The scripts directory must have a
run.sh in that script put the commands you need to get your application running.
The container will expose the port
For instance you can create a script with these commands:
cd /apps/myapp bower install --config.interactive=false --allow-root npm install gulp compile pm2 start app.js