David - Musings of an SRE

Speed up NPM install in Docker Containers

NPM installs in your docker containers getting slow, make sure you set registry!

# Dockerfile
RUN npm config set registry http://registry.npmjs.org/ && npm install --no-optional --verbose

Try this the next time your NPM install feel like its taking forever.