arrow_back
Back

Dockerfile FROM: base images, tags, and multi-stage builds

Andrew Dorokhov Andrew Dorokhov schedule 1 min read

FROM initializes a new build stage and sets the base image.

The FROM instruction defines the base OS image. It is mandatory as the first uncommented instruction in every Dockerfile. All subsequent instructions build on top of the specified image in the form IMAGE:TAG (e.g., debian:wheezy). If the tag is omitted, Docker defaults to latest — always specify a version tag explicitly to avoid surprises.

open_in_new Official docs on the FROM instruction .

code

Need Help with Development?

Happy to help — reach out via the contacts or go straight to my Upwork profile.

work View Upwork Profile arrow_forward
Next Article

Dockerfile EXPOSE: documenting container ports

arrow_forward