I have the problem with installing node_modules
inside the Docker container and synchronize them with the host. My Docker\'s version is 18.03.1-ce, build
Thanks Vladyslav Turak for answer with entrypoint.sh
where we copy node_modules
from container to host.
I implemented the similar thing but I run into the issue with husky, @commitlint, tslint npm packages.
I can't push anything into repository.
Reason: I copied node_modules
from Linux to Windows. In my case <5% of files are different (.bin and most of package.json) and 95% are the same. example: image with diff
So I returned to solution with npm install
of node_modules
for Windows first (for IDE and debugging). And Docker image will contain Linux version of node_modules
.