如何在不同的容器中使用共享库node_modules?
我有三个容器运行相同的NodeJS应用程序,并使用NPM来pipe理每个libary(node_modules)
。
到目前为止,我的解决scheme是在HOST
运行npm install
,并为所有容器安装node_modules
文件夹。
有更好的方法来pipe理它吗?
我有三个容器运行相同的NodeJS应用程序,并使用NPM来pipe理每个libary(node_modules)
。
到目前为止,我的解决scheme是在HOST
运行npm install
,并为所有容器安装node_modules
文件夹。
有更好的方法来pipe理它吗?