Skip to content

wetopi/node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Wetopi node Dockerfile

This repository contains Dockerfile with a base of node plus forever

Base Docker Image

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull wetopi/node

  3. 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)

Run npm start inside our container:

docker run -d -p 3001:3001 wetopi/node

Running in development environment with forever

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
Why forever

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.

About

Dockerfile with a base of node plus forever

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published