Re:Dockerception: Docker building dockers – keeping them small
by bmurphy1976 on Monday April 06, 2015 @03:43PM
(#9330264)
I just don't see the problem here.
Docker is a compiler (docker build), Dockerfiles are source code, and Docker images are binary artifacts. We already have tools that manage this for us: make, cmake, nmake, rake, scons, etc.
People need to get over their fear of build tools and use them. This is exactly the kind of problem they solve. Make IS the standard.
Some standardisation in this area would be nice, but the problem can be solved rather trivially by using a separate container with all the tools for the build process, and placing the build product into a lean production image. This process is easy to automate/script, and I don't feel that there is much gain from having some encompassing spec or standard that has to consider all the edge cases and is more complex than necessary as a result.