DockerBuildArgs

data class DockerBuildArgs(val addHosts: Output<List<String>>? = null, val args: Output<Map<String, String>>? = null, val builderVersion: Output<BuilderVersion>? = null, val cacheFrom: Output<CacheFromArgs>? = null, val context: Output<String>? = null, val dockerfile: Output<String>? = null, val network: Output<String>? = null, val platform: Output<String>? = null, val target: Output<String>? = null) : ConvertibleToJava<DockerBuildArgs>

The Docker build context

Constructors

Link copied to clipboard
constructor(addHosts: Output<List<String>>? = null, args: Output<Map<String, String>>? = null, builderVersion: Output<BuilderVersion>? = null, cacheFrom: Output<CacheFromArgs>? = null, context: Output<String>? = null, dockerfile: Output<String>? = null, network: Output<String>? = null, platform: Output<String>? = null, target: Output<String>? = null)

Properties

Link copied to clipboard
val addHosts: Output<List<String>>? = null

Custom host-to-IP mappings to use while building (format: "host:ip")

Link copied to clipboard
val args: Output<Map<String, String>>? = null

An optional map of named build-time argument variables to set during the Docker build. This flag allows you to pass build-time variables that can be accessed like environment variables inside the RUN instruction.

Link copied to clipboard
val builderVersion: Output<BuilderVersion>? = null

The version of the Docker builder.

Link copied to clipboard
val cacheFrom: Output<CacheFromArgs>? = null

A list of image names to use as build cache. Images provided must have a cache manifest. Must provide authentication to cache registry.

Link copied to clipboard
val context: Output<String>? = null

The path to the build context to use.

Link copied to clipboard
val dockerfile: Output<String>? = null

The path to the Dockerfile to use.

Link copied to clipboard
val network: Output<String>? = null

Set the networking mode for RUN instructions

Link copied to clipboard
val platform: Output<String>? = null

The architecture of the platform you want to build this image for, e.g. linux/arm64.

Link copied to clipboard
val target: Output<String>? = null

The target of the Dockerfile to build

Functions

Link copied to clipboard
open override fun toJava(): DockerBuildArgs