Introduction
When you build a Docker image, you start from a base image that provides the basic environment. The FROM instruction tells Docker which base image to use, so you don't have to build everything from scratch.
When you want to create a custom application environment starting from a standard Linux system like Ubuntu or Alpine.
When you need to build a container image that includes a specific programming language runtime like Python or Node.js.
When you want to base your image on an official database image like MySQL or Redis to add custom configurations.
When you want to create a multi-stage build to optimize the final image size by using multiple FROM instructions.
When you want to specify a particular version or tag of a base image to ensure consistency across deployments.