Multi-Stage Builds

1 / 9

Almost every image built by someone learning Docker ships the tools that built it. The compiler, the dev dependencies, the package manager's cache, sometimes the source and the .git directory. None of it runs in production; all of it is pulled on every deploy and scanned by every CVE tool.

Multi-stage builds are the fix, and they are one keyword.

Finish →