Open Unrepentant-Atheist opened 3 years ago
As a temporary fix, you can put them in a tmpfs (if you've got enough memory):
tmpfs:
- /config/www/node_modules:size=400m
Das bueno!
And even more with
environment:
- NODE_ENV=production
The main issue is that the entire image is copied to the /config
folder instead of being read from the image directly.
Are 22+k ( https://i.imgur.com/08Y7Eta.png ) files really necessary in the
www/node_modules
after I did a docker compose? Can't it be culled to include only the necessary parts for the app to work?It's a PITA to back it up with Macrium Reflect.
packages.json says:
yet the image is pulling 742 different modules with 22k+ files and putting them in the data folder.
This is the docker-compose.yml I use: