CMD

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

Inserts a CMD instruction into the Dockerfile with args as its argument(s).


fun CMD(executable: String, vararg param: String): DockerfileBuilder

Inserts a CMD instruction into the Dockerfile.

Parameters

executable

Command to execute when the image starts running.

param

Parameters to pass into the executable.


fun CMD(form: DockerfileBuilder.Form, executable: String, vararg param: String): DockerfileBuilder

Inserts a CMD instruction into the Dockerfile.

Parameters

form

The form of arguments to use in the Dockerfile.

executable

Command to execute when the image starts running.

param

Parameters to pass into the executable.