ENV

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

Inserts an ENV instruction into the Dockerfile with args as its argument(s).


fun ENV(key: String, value: String): DockerfileBuilder

Inserts an ENV instruction into the Dockerfile.

Parameters

key

Key of the environment variable.

value

Value of the environment variable.


fun ENV(vararg vars: Pair<String, String>): DockerfileBuilder

Inserts an ENV instruction into the Dockerfile.

Parameters

vars

List of environment variables to add. The first and second argument of the Pair refers to the key and value of the variables respectively.