lightweight nodejs-container with daemonized startup via nodemon.io - raspberry pi ready.
1.2K
based on hypriot-iojs, incl. node v1.4.1 & npm v2.6.0 extended by nodemon v.1.11.0
running on any armv7 / armv71 compatible with armv8
version: "2"
services:
web:
image: amble/nodemonjs-pi
container_name: nodemonjs-app
expose:
- "8080"
ports:
- "8080:8080"
volumes:
- .:/src
command:
nodemon index.js
{
"name": "my-nodejs-app",
"version": "0.0.1",
"description": "raspberry pi meets nodemon docker",
"main": "server.js",
"author": "amble",
"dependencies": {
"body-parser": "^1.4.3",
"express": "^4.13.4",
"method-override": "^2.1.3",
"morgan": "^1.1.1"
}
}
var express = require('express');
var app = express();
app.get('/about', function (req, res) {
console.log('on about');
});
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node index.js`
Running on http://localhost:8080
[nodemon] restarting due to changes...
[nodemon] starting `node index.js`
Running on http://localhost:8080/about
Copyright © 2016, 2017 mbl - Licenced under GPL-3.
Content type
Image
Digest
Size
55.4 MB
Last updated
over 9 years ago
docker pull amble/nodemonjs-pi