BuildKit Frontend とは何か?
BuildKit frontend は、build 定義を解析し、それを BuildKit の低レベルの中間表現、つまりエンジンが実行する build グラフへ変換するコンポーネントです。デフォルトの frontend は Dockerfile を理解しますが、frontend はプラガブルなので、他の言語や構文でも同じエンジンを駆動できます。Dockerfile の先頭にある syntax ディレクティブが、どの frontend を使うかを選択します。
なぜ重要か
build 定義を実行エンジンから切り離すことで、新しい Dockerfile の機能を、BuildKit 自体を変更せずに更新された frontend として提供できます。また、まったく異なる build 記述が、同じ caching と並列実行のエンジンを対象にできるようになります。frontend のバージョンを固定すると、build の再現性が高まります。
関連ガイド
What Is a Build Secret Mount?A build secret mount exposes a credential to a single build step at runtime without baking it into any image…
What Is an Image Layer?An image layer is one filesystem diff in a container image; layers stack to form the final filesystem and are…
What Is a Remote Build Executor?A remote build executor is a worker that runs build actions on a separate machine, letting a build tool offlo…