Skip to content
Opsfolk

Containers, topic 35 of 78

Writing Dockerfiles

A Dockerfile is the recipe for an image. Learn its instructions, how each one makes a cached layer and why their order decides how fast rebuilds are, and multi-stage builds that leave compilers out of the final image.

Aim for small images from a slim or distroless base, a .dockerignore, a pinned base version, and a user other than root.

On Opsfolk

Nothing of ours for this topic yet: an article is on its way.

Elsewhere

Your progress