ZeroMQ with node.js bindings ready for your project.
- Alpine 3.5
- Node.js 6.10.0 LTS
Example Dockerfile for project
If you don't have any native dependencies, ie only depend on pure-JS
npm modules, then my suggestion is to run
npm install locally before running docker build (and make sure
node_modules isn't in your
.dockerignore) – then you don't need an
npm install step in your
Dockerfile and you don't need npm installed in your Docker image – so you can use one of the smaller base* images.
npm link zmq before you install any Node package.
FROM grgichtran/node-zmq EXPOSE 3000 WORKDIR ./ ADD . . RUN npm link zmq && npm install