ONBUILD

fun ONBUILD(args: () -> String): DockerfileBuilder

Insert an ONBUILD instruction into the Dockerfile with args as its argument(s).


fun ONBUILD(instruction: String): DockerfileBuilder

Insert an ONBUILD instruction into the Dockerfile.

Parameters

instruction

Instruction to execute when this image is used as a basis for another image.