DockerBuild class
The Docker build context
Constructors
-
DockerBuild({Input<
List< ? addHosts, Input<String> ?>Map< ? args, Input<String, String> ?>BuilderVersion?> ? builderVersion, Input<CacheFrom?> ? cacheFrom, Input<String?> ? context, Input<String?> ? dockerfile, Input<String?> ? network, Input<String?> ? platform, Input<String?> ? target}) -
Creates a new DockerBuild.
addHostsCustom host-to-IP mappings to use while building (format: "host:ip")argsAn 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.builderVersionThe version of the Docker builder.cacheFromA list of image names to use as build cache. Images provided must have a cache manifest. Must provide authentication to cache registry.contextThe path to the build context to use.dockerfileThe path to the Dockerfile to use.networkSet the networking mode for RUN instructionsplatformThe architecture of the platform you want to build this image for, e.g.linux/arm64.targetThe target of the Dockerfile to buildconst -
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