Docker

Dockerfile

A Dockerfile is a text specification of instructions used to build a container image. It defines base images, copied files, build commands, and runtime settings; instruction ordering influences cache reuse and the resulting image contents.

Why it matters

Instruction order affects image content, cache behavior, and accidental secret retention.

Practical example

Copy dependency manifests before application source so dependency installation can remain cached across source-only changes.

Related terms

Sources

Definition reviewed .

Start with $10 in free credits

Change the runner label in your workflow and keep the rest of your GitHub Actions setup. Runner time is billed per minute.

← Return to glossary