3 ms·
Actually the more complex it is, the more beneficial encapsulation can be. I think maybe I know what his actual problem is. It didn't detect a change to the r
by ilaksh 12y ago
Actually the more complex it is, the more beneficial encapsulation can be.
I think maybe I know what his actual problem is. It didn't detect a change to the requirements.txt, or it is _always_ detecting a change.
In the Dockerfile you want to ADD your requirements.txt first, then RUN the pip install, then ADD .
http://stackoverflow.com/questions/25305788/how-to-avoid-reinstalling-packages-when-building-docker-image-for-python-project http://stackoverflow.com/questions/25305788/how-to-avoid-rei...
Also check for a --no-cache
- jessaustin 12y agoThanks for this comment! I read this whole thread primarily to find this information.