Node onbuild with app folder mounted as volume.
8.2K
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.
❗️2016-02-16: Now using CMD [ "node", "app.js" ]`` instead of npm start`, due to
npm not forwarding signals such as SIGTERM.
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
Content type
Image
Digest
sha256:1da7dbe51…
Size
328.4 MB
Last updated
over 5 years ago
docker pull hiotlabs/node-onbuild