ADD

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

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


fun ADD(dest: String, vararg src: String): DockerfileBuilder

Inserts an ADD instruction into the Dockerfile.

Parameters

dest

The destination location in the image.

src

The files to copy from the host filesystem.


fun ADD(chown: Pair<String, String>, dest: String, vararg src: String): DockerfileBuilder

Inserts an ADD instruction into the Dockerfile.

Parameters

chown

The UID and GID of the file(s) in the image.

dest

The destination location in the image.

src

The files to copy from the host filesystem.


fun ADD(form: DockerfileBuilder.Form, dest: String, vararg src: String): DockerfileBuilder

Inserts an ADD instruction into the Dockerfile.

Parameters

form

The form of arguments to use in the Dockerfile.

dest

The destination location in the image.

src

The files to copy from the host filesystem.


fun ADD(form: DockerfileBuilder.Form, chown: Pair<String, String>, dest: String, vararg src: String): DockerfileBuilder

Inserts an ADD instruction into the Dockerfile.

Parameters

form

The form of arguments to use in the Dockerfile.

chown

The UID and GID of the file(s) in the image.

dest

The destination location in the image.

src

The files to copy from the host filesystem.