← All notes

Docker build context and the Dockerfile

Answer: The build context is the set of files that your build can access. Build instructions such as COPY and ADD can refer to any of the files and directories in the context. (S1)

Kinds of context

The Dockerfile

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker Docs, Build context, Docker docs, Apache-2.0 (github.com/docker/docs; https://github.com/docker/docs/blob/main/LICENSE); Docker name and logo are trademarks of Docker Inc and are not licensed; Docker Docs, Dockerfile overview, Docker docs, Apache-2.0 (github.com/docker/docs; https://github.com/docker/docs/blob/main/LICENSE); Docker name and logo are trademarks of Docker Inc and are not licensed.

Cite this

Permanent ID: iil:note:m7y1tf14

iinventedlight. 2026. "Docker build context and the Dockerfile." iinventedlight Library, iil:note:m7y1tf14, version of 2026-11-04. https://iinventedlight.com/library/notes/docker-build-context/. License: CC-BY-4.0.

@misc{iil_note_m7y1tf14,
  author = {{iinventedlight}},
  title = {{Docker build context and the Dockerfile}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/docker-build-context/},
  note = {Permanent ID iil:note:m7y1tf14. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/docker-build-context.md.