FROM

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

Inserts a FROM instruction into the Dockerfile with args as its argument(s).


fun FROM(image: String, asAlias: String? = null): DockerfileBuilder

Inserts a FROM instruction into the Dockerfile.

Parameters

image

The base image to use for subsequent instructions.

asAlias

If not null, the alias to use in subsequent FROM or COPY instructions.