DockerBuild class

The Docker build context

Constructors

DockerBuild({Input<List<String>?>? addHosts, Input<Map<String, String>?>? args, Input<BuilderVersion?>? builderVersion, Input<CacheFrom?>? cacheFrom, Input<String?>? context, Input<String?>? dockerfile, Input<String?>? network, Input<String?>? platform, Input<String?>? target})
Creates a new DockerBuild. addHosts Custom host-to-IP mappings to use while building (format: "host:ip") args 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. builderVersion The version of the Docker builder. cacheFrom A list of image names to use as build cache. Images provided must have a cache manifest. Must provide authentication to cache registry. context The path to the build context to use. dockerfile The path to the Dockerfile to use. network Set the networking mode for RUN instructions 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

addHosts → Input<List<String>?>?
Custom host-to-IP mappings to use while building (format: "host:ip")
final
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 build-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<CacheFrom?>?
A list of image names to use as build cache. Images provided must have a cache manifest. Must provide authentication to cache registry.
final
context → Input<String?>?
The path to the build context to use.
final
dockerfile → Input<String?>?
The path to the Dockerfile to use.
final
hashCode → int
The hash code for this object.
no setterinherited
network → Input<String?>?
Set the networking mode for RUN instructions
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