Determinism has always been a problem with npm, and solutions like npm shrinkwrap are not working well. This makes hard to use a
npm-basedsystem for multiple developers and on continuous integration. Also,
npmslowness in case of complex
package.jsonfiles causes long build times, representing a serious blocker when using Docker for local development.
This article discuss how to use Yarn with Docker for Node.js development and deployment.
Yarn is pretty powerful, and combining it with Docker to help make builds smoother makes it even more useful.