ImageArgs constructor

const ImageArgs({
  1. Input<List<String>>? addHosts,
  2. Input<Map<String, String>>? buildArgs,
  3. Input<bool>? buildOnPreview,
  4. Input<BuilderConfig>? builder,
  5. Input<List<CacheFrom>>? cacheFrom,
  6. Input<List<CacheTo>>? cacheTo,
  7. Input<BuildContext>? context,
  8. Input<Dockerfile>? dockerfile,
  9. Input<bool>? exec,
  10. Input<List<Export>>? exports,
  11. Input<List<String>>? ignoreSecretsInDiffCalculation,
  12. Input<Map<String, String>>? labels,
  13. Input<bool>? load,
  14. Input<NetworkMode>? network,
  15. Input<bool>? noCache,
  16. Input<List<Platform>>? platforms,
  17. Input<bool>? pull,
  18. required Input<bool> push,
  19. Input<List<Registry>>? registries,
  20. Input<Map<String, String>>? secrets,
  21. Input<List<SSH>>? ssh,
  22. Input<List<String>>? tags,
  23. Input<String>? target,
})

Creates a new ImageArgs. addHosts Custom host:ip mappings to use during the build. buildArgs ARG names and values to set during the build. buildOnPreview Setting this to false will always skip image builds during previews, builder Builder configuration. cacheFrom Cache export configuration. cacheTo Cache import configuration. context Build context settings. Defaults to the current directory. dockerfile Dockerfile settings. exec Use exec mode to build this image. exports Controls where images are persisted after building. ignoreSecretsInDiffCalculation A list of secret names to ignore when calculating diffs. labels Attach arbitrary key/value metadata to the image. load When true the build will automatically include a docker export. network Set the network mode for RUN instructions. Defaults to default. noCache Do not import cache manifests when building the image. platforms Set target platform(s) for the build. Defaults to the host's platform. pull Always pull referenced images. push When true the build will automatically include a registry export. registries Registry credentials. Required if reading or exporting to private secrets A mapping of secret names to their corresponding values. ssh SSH agent socket or keys to expose to the build. tags Name and optionally a tag (format: name:tag). target Set the target build stage(s) to build.

Implementation

const ImageArgs({
  this.addHosts,
  this.buildArgs,
  this.buildOnPreview,
  this.builder,
  this.cacheFrom,
  this.cacheTo,
  this.context,
  this.dockerfile,
  this.exec,
  this.exports,
  this.ignoreSecretsInDiffCalculation,
  this.labels,
  this.load,
  this.network,
  this.noCache,
  this.platforms,
  this.pull,
  required this.push,
  this.registries,
  this.secrets,
  this.ssh,
  this.tags,
  this.target,
});