This repository contains Dockerfile with a base of node plus forever
-
Install Docker.
-
Download automated build from public Docker Hub Registry:
docker pull wetopi/node
-
Build
docker build -t="wetopi/node" github.com/wetopi/node .
(alternatively, you can build an image from Dockerfile:docker build -t="wetopi/node" github.com/wetopi/node
)
docker run -d -p 3001:3001 wetopi/node
docker run -d -p 3001:3001 -e NODE_ENV=development -v <my_app_dir>:/usr/src/app wetopi/node forever --watchDirectory=/usr/src/app -w server/server.js
When Ghost starts with the help of forever https://www.npmjs.com/package/forever and its watchDirectory option. Then we can develop on a shared volume and forever will watch for file changes.