Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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-rei...

Also check for a --no-cache



Thanks for this comment! I read this whole thread primarily to find this information.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: