ONBUILD
ONBUILD is a Dockerfile instruction that defines a trigger to be executed when the image is used as a base for another image. It lets a base image specify build steps that should automatically run in descendant images, enabling a form of inheritance for Docker images.
Mechanism: When you build a child image with FROM base-image, the ONBUILD instructions in the base are
Common use: to automate setup for multiple derived images, such as installing common dependencies, copying scaffolding,
Cautions: ONBUILD can surprise downstream users by executing instructions they did not explicitly write in their