DockerBuild constructor

const DockerBuild({
  1. Input<List<String>?>? addHosts,
  2. Input<Map<String, String>?>? args,
  3. Input<BuilderVersion?>? builderVersion,
  4. Input<CacheFrom?>? cacheFrom,
  5. Input<String?>? context,
  6. Input<String?>? dockerfile,
  7. Input<String?>? network,
  8. Input<String?>? platform,
  9. 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

Implementation

const DockerBuild({
  this.addHosts,
  this.args,
  this.builderVersion,
  this.cacheFrom,
  this.context,
  this.dockerfile,
  this.network,
  this.platform,
  this.target,
});