Skip to content
Latchkey

Build Context - CI/CD Glossary Definition

The build context is the set of files sent to the builder when an image is built, usually the directory passed to docker build .. Only files in the context can be COPYed into the image.

The build context is the set of files sent to the builder when an image is built, usually the directory passed to docker build .. Only files in the context can be COPYed into the image.

The build context is the set of files sent to the builder when an image is built, usually the directory passed to docker build .. Only files in the context can be COPYed into the image.

In CI

A bloated context slows every build because it is transferred to the builder first. A .dockerignore file trims it to only what the image needs.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →