Hi Together,
I have some question about docker and it's persistence especially for packages I installed with npm install.
After reading the documentation several times I wanted to ask if I understand it correctly.
- You can use /data for data persistence and to either a bind mount or a volume. But that's only for the flows not for the packages.
- If you need to install other stuff with npm install it wont be persistent if you update the container with
docker pull ...
docker stop ...
docker rm ...
docker run .... - To install additional npm packages you have to clone the repo from github and use the docker-costum scripts ( and modify the package.json with all the aditional npm packages I need) ... otherwise you'll always loose the npm packages that you installed afterwards using docker exec -it bash ... npm install ....
Am I getting right all these points?
What is the reason that the npm packages are not presistent? Is it about haveing less complications with outdated packages when updating the docker container?
Thanks for your feedback.
Regards
Stefan