Skip to content

hiotlabs/node-onbuild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-onbuild

Like official docker node onbuild image, but we're installing npm packages one level above the app folder. Modules will still be found but won't be overridden when mounting the project directory for development.

Breaking change

❗️2016-02-16: Now using CMD [ "node", "app.js" ]`` instead of npm start`, due to npm not forwarding signals such as SIGTERM.

Use in development setup

Dockerfile:

FROM hiotlabs/node-onbuild:latest
RUN npm install -g supervisor

docker-compose.yml:

node:
  build: .
  volumes:
    - .:/usr/src/app
  command: supervisor -e js,json app.js

Credits

Ideas come from here and there.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •