Example Dockerfile for your own Node.js project

If you don't have any native dependencies, ie only depend on pure-JS npmmodules, then my suggestion is to run npm install locally before runningdocker 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 neednpm installed in your Docker image – so you can use one of the smallerbase* images.