News for hackers. Stuff that matters.
Re:Developing with Docker at IFTTT by emailgregn on Wednesday October 07, 2015 @03:38PM (#10348473)
Install each of the pip/bundler requirements with a separate dockerfile RUN command. Each gets cached into its own container filesystem layer that way and only new requirements are pulled. Use your favourite templating tool to generate the dockerfile with multiple run commands.

I wrote djtempl ( https://github.com/emailgregn/djtempl ) for my purposes.

Re:Developing with Docker at IFTTT by davexunit on Wednesday October 07, 2015 @03:41PM (#10348487)
But let's say a dependency is changed. Won't modifying that RUN directive invalidate the cache for everything after it, potentially rebuilding a ton of stuff anyway?
Re:Developing with Docker at IFTTT by emailgregn on Wednesday October 07, 2015 @03:51PM (#10348553)
Yup, that's the trade-off.
Re:Developing with Docker at IFTTT by davexunit on Wednesday October 07, 2015 @04:01PM (#10348615)
It's unfortunate that Docker uses an imperative model. A functional model would have much better cache utilization.