VOLUME

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

Insert a VOLUME instruction into the Dockerfile with args as its argument(s).


fun VOLUME(vararg volumes: String): DockerfileBuilder

Insert a VOLUME instruction into the Dockerfile.

Parameters

volumes

The volumes which should be externally mounted.


Insert a VOLUME instruction into the Dockerfile.

Parameters

form

The form of arguments to use in the Dockerfile.

volumes

The volumes which should be externally mounted.