Can you explain dockerfile ONBUILD instruction?

Technology CommunityCategory: DockerCan you explain dockerfile ONBUILD instruction?
VietMX Staff asked 3 years ago

The ONBUILD instruction adds to the image a trigger instruction to be executed at a later time, when the image is used as the base for another build. This is useful if you are building an image which will be used as a base to build other images, for example an application build environment or a daemon which may be customized with user-specific configuration.