COPY

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

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


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

Inserts a COPY instruction into the Dockerfile.

Parameters

dest

The destination location in the image.

src

The files to copy from the host filesystem.


fun COPY(opts: Map<String, String>, dest: String, vararg src: String): DockerfileBuilder

Inserts an COPY instruction into the Dockerfile.

Parameters

opts

The options to pass into the COPY instruction. The first and second argument to the Pair refers to the option (without the leading dashes) and the value respectively.

dest

The destination location in the image.

src

The files to copy from the host filesystem.


Inserts a COPY 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 COPY(form: DockerfileBuilder.Form, opts: Map<String, String>, dest: String, vararg src: String): DockerfileBuilder

Inserts a COPY instruction into the Dockerfile.

Parameters

form

The form of arguments to use in the Dockerfile.

opts

The options to pass into the COPY instruction. The first and second argument to the Pair refers to the option (without the leading dashes) and the value respectively.

dest

The destination location in the image.

src

The files to copy from the host filesystem.