Sample NodeJs application
Create main.js
create package.json\
Install Nodejs
Set PATH in .bashrc as "export PATH="$PATH:/root/nodejs/bin"
cd application directory
npm install #where package.json is available
node main.js # where main.js is available\
access the application using "curl http://127.0.0.1:8000
Note: this guide assumes you are running Jenkins 2.0 or newer, with the Docker Pipeline plugin and Docker installed.