Build Context - CI/CD用語集の定義
Build context とは、image をビルドするときに builder へ送られるファイルの集合で、通常は docker build . に渡されるディレクトリです。context 内のファイルだけが image に COPY できます。
Build context とは、image をビルドするときに builder へ送られるファイルの集合で、通常は docker build . に渡されるディレクトリです。context 内のファイルだけが image に COPY できます。
Build context とは、image をビルドするときに builder へ送られるファイルの集合で、通常は docker build . に渡されるディレクトリです。context 内のファイルだけが image に COPY できます。
CI では
肥大化した context は、まず builder へ転送されるため、すべての build を遅くします。.dockerignore ファイルを使うと、image に必要なものだけに絞り込めます。
関連ガイド
dockerignore - CI/CD Glossary Definitiondockerignore: A .dockerignore file lists paths excluded from the build context before it is sent to the build…
BuildKit - CI/CD Glossary DefinitionBuildKit: BuildKit is Docker's modern build engine that parallelizes independent build steps, supports advanc…
Multi-Stage Dockerfile - CI/CD Glossary DefinitionMulti-Stage Dockerfile: A multi-stage Dockerfile uses several `FROM` stages so build tooling stays in an earl…
Layer Caching - CI/CD Glossary DefinitionLayer Caching: Layer caching reuses the results of previously built image layers when their inputs are unchan…