EXPOSE

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

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


fun EXPOSE(vararg ports: Int): DockerfileBuilder

Inserts an EXPOSE instruction into the Dockerfile.

Parameters

ports

TCP Ports to expose by default.


Inserts an EXPOSE instruction into the Dockerfile.

Parameters

ports

Ports to expose by default. The first and second argument of the Pair refers to the port number and the protocol respectively.