Re:Dockerfile Tips from the Official Images
by akerl_ on Monday November 17, 2014 @09:57AM
(#8618412)
My apologies for being unclear: I'm saying that in the case where you're building from source during the build of your service container, you're almost always better off building from source in a separate container and then either turning that into a deb or other consumable format.
[ Parent
| on HN ]
Re:Dockerfile Tips from the Official Images
by amouat on Monday November 17, 2014 @10:39AM
(#8618631)
Maybe. But you do lose some transparency and repeatability - it becomes harder for others to understand and use your Dockerfile. They suddenly have to either download or recreate whatever debs/tarballs etc you've used.
I think the real problem is that Dockerfiles aren't expressive enough yet. At the very least we need a more user friendly method to run several commands in single layer.