DockerBuild class

Arguments for building a docker image

Constructors

DockerBuild({Input<Map<String, String>?>? args, Input<BuilderVersion?>? builderVersion, Input<List<String>?>? cacheFrom, Input<String?>? context, Input<String?>? dockerfile, Input<String?>? imageName, Input<String?>? imageTag, Input<String?>? platform, Input<String?>? target})
Creates a new DockerBuild. args An optional map of named build-time argument variables to set during the Docker build. This flag allows you to pass built-time variables that can be accessed like environment variables inside the RUN instruction. builderVersion The version of the Docker builder. cacheFrom Images to consider as cache sources context Path to a directory to use for the Docker build context, usually the directory in which the Dockerfile resides (although dockerfile may be used to choose a custom location independent of this choice). If not specified, the context defaults to the current working directory; if a relative path is used, it is relative to the current working directory that Pulumi is evaluating. dockerfile dockerfile may be used to override the default Dockerfile name and/or location. By default, it is assumed to be a file named Dockerfile in the root of the build context. imageName Custom name for the underlying Docker image resource. If omitted, the image tag assigned by the provider will be used imageTag Custom image tag for the resulting docker image. If omitted a random string will be used platform The architecture of the platform you want to build this image for, e.g. linux/arm64. target The target of the dockerfile to build
const
DockerBuild.fromMap(Map<String, dynamic> map)
factory

Properties

args → Input<Map<String, String>?>?
An optional map of named build-time argument variables to set during the Docker build. This flag allows you to pass built-time variables that can be accessed like environment variables inside the RUN instruction.
final
builderVersion → Input<BuilderVersion?>?
The version of the Docker builder.
final
cacheFrom → Input<List<String>?>?
Images to consider as cache sources
final
context → Input<String?>?
Path to a directory to use for the Docker build context, usually the directory in which the Dockerfile resides (although dockerfile may be used to choose a custom location independent of this choice). If not specified, the context defaults to the current working directory; if a relative path is used, it is relative to the current working directory that Pulumi is evaluating.
final
dockerfile → Input<String?>?
dockerfile may be used to override the default Dockerfile name and/or location. By default, it is assumed to be a file named Dockerfile in the root of the build context.
final
hashCode → int
The hash code for this object.
no setterinherited
imageName → Input<String?>?
Custom name for the underlying Docker image resource. If omitted, the image tag assigned by the provider will be used
final
imageTag → Input<String?>?
Custom image tag for the resulting docker image. If omitted a random string will be used
final
platform → Input<String?>?
The architecture of the platform you want to build this image for, e.g. linux/arm64.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
target → Input<String?>?
The target of the dockerfile to build
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited