Dockerfiles
A Dockerfile is a text document that contains a sequence of instructions used to build a Docker image. It is processed by the docker build command, which reads the file from the build context and executes each instruction in order to produce a filesystem snapshot called an image. Each instruction creates a new image layer, and layers are cached to speed up subsequent builds. The resulting image can be used to run containers.
Core structure: The FROM instruction specifies the base image. Subsequent instructions modify the image, such as
Build considerations: Multistage builds allow separating build and runtime environments to minimize final image size. Pin
Other features: ARG supports parameters at build time; ONBUILD triggers can run in child images; ADD supports