3 ms·
>And if you want to cut build dependencies from the final container: Do the build in one container, install the build-artefacts to a volume, and use the content
by sciurus 12y ago
>And if you want to cut build dependencies from the final container: Do the build in one container, install the build-artefacts to a volume, and use the contents of that volume to build a container without the build dependencies.
This is similar to what Netflix, one of the early big proponents of immutable servers, does. They build a deb package, then they create an AMI with that package installed.
http://techblog.netflix.com/2013/03/ami-creation-with-aminator.html http://techblog.netflix.com/2013/03/ami-creation-with-aminat...