github.com 上のツールを作ったので紹介の記事です. 背景 僕はアプリケーションエンジニアとしてDockerfileをそこそこ書くことがあるのですが, 巷にあふれるDockerfileがRUN一つにまとめられているのがずっと不思議に思っていました. 見栄えも悪いし, これってメンテナンス可能なんだろうか. そもそもなぜやっているんだろうと. docs.docker.com In older versions of Docker, it was important that you minimized the number of layers in your images to ensure they were performant. The following features were added to reduce this limitation: In Docker 1.10