-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimised Dockerfile for fast, cached builds #292
Conversation
@angadn yet another contribution, thanks a lot! Good idea with the caching. Can you give me a short explanation why you remove |
@twerkmeister the idea is to first install all dependencies without copying in our own code-base inside the container, which we'd have to do if we were installing our modules alongside; since Docker would then watch our files for change, and install all dependencies afresh. In this case, you'll notice that if you try to move the On line 26, I concatenate the |
Thanks for the explanation! What happens now if someone executes |
Crap - to be honest, this is the first time I'm working on a Python codebase in months; makes sense, I shall make this change and update the PR as soon as I'm back at work! |
@angadn please let us know when you have an updated version, this is quite a neat contribution 👍 |
…on, so as to preserve functionality of non-docker setups (as per: #292 (comment))
Pushed update as per suggestions - testing out the build process locally now and will push fixes if necessitated |
…riends all failed miserably
Not sure why 1 check is failing - can you please point me in the right direction |
@angadn that issue is not related to your code, merging in the latest master should resolve it. |
Whoops - done. Hope this helps |
@twerkmeister please merge if you feel everything is good to go. |
Good stuff @angadn, thanks for the changes! |
No description provided.