Getting NPM installed inside a Docker container

posted in: Uncategorized | 0

We’ve been using Docker 1.12 (for Mac) to set up a front-end development pipeline. We found that NPM runs very slowly, if at all. This specific version of Docker has a Docker (virtual) machine behind the scenes, which is installed with the regular Docker installation.

To solve the problem, in our Dockerfile we need to configure NPM settings: