by incision · 12y ago · 0 comments
In the context of Docker it's inconvenient, but entirely straightforward to create images that don't include those elements.
It's a matter of creating an unwieldy chain of build steps to avoid committing intermediate containers.
If/when something like this [1] gets merged things will be greatly simplified.
You can make that cleaner by making the build steps into one Docker image, the final app into a second, and have them share a base image that contains all the basic dependencies.
For Ruby at least the intermediate build step would typically only need to be re-run whenever your Gemfile/Gemfile.lock changes.