Sign inSign up

hiotlabs/node-onbuild

By hiotlabs

Updated over 5 years ago

Node onbuild with app folder mounted as volume.

Artifact
Image
0

8.2K

hiotlabs/node-onbuild repository overview

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.

Tag summary

Content type

Image

Digest

sha256:1da7dbe51

Size

328.4 MB

Last updated

over 5 years ago

docker pull hiotlabs/node-onbuild