DEV Community

Discussion on: Using Docker for Node.js in Development and Production

Collapse
 
akhomy profile image
Andriy Khomych

dev.to/alex_barashkov/comment/8a92
"install node modules in a custom directory that also described by the link above"

And why not to use this solution?
IMHO, it sounds better for me. As it aligns with:
1) Docker best practices, for me it is more a volume data rather than app dependencies.
2) Your node modules are explicitly available and you could check source code for them without a problem.
3) All node modules are going to be installed similar way as without docker. Personally, it is more a plus, as without docker we've used the same way and docker is more for the managing system dependencies. As I say, IMHO.