ONBUILD

Difficulty: Advanced

Question

What is the ONBUILD instruction?

Answer

It adds a trigger instruction to an image that will be executed when the image is used as a base for another build.

Concepts covered

Dockerfile, Automation