Q. What is the purpose of the ONBUILD instruction in a Dockerfile?
β
Correct Answer: (A)
To trigger instructions when the image is used as a base for another image
Explanation: The ONBUILD instruction triggers commands when the image is used as a base for another image.