How to use shared libraries for node_modules in separate containers?

I have three containers in which one NodeJS application runs, and use NPM to manage each of them libary(node_modules).

So far My solution is that I run npm installin HOSTand mount the folder node_modulesfor all containers.

Are there any better ways to manage it?

+4
source share

Source: https://habr.com/ru/post/1689205/


All Articles