DockerBuildOptions

class aws_cdk.core.DockerBuildOptions(*, build_args=None, file=None, platform=None)

Bases: object

Docker build options.

Parameters
  • build_args (Optional[Mapping[str, str]]) – Build args. Default: - no build args

  • file (Optional[str]) – Name of the Dockerfile, must relative to the docker build path. Default: Dockerfile

  • platform (Optional[str]) – Set platform if server is multi-platform capable. Requires Docker Engine API v1.38+. Default: - no platform specified

Attributes

build_args

Build args.

Default
  • no build args

Return type

Optional[Mapping[str, str]]

file

Name of the Dockerfile, must relative to the docker build path.

Default

Dockerfile

Return type

Optional[str]

platform

Set platform if server is multi-platform capable.

Requires Docker Engine API v1.38+.

Default
  • no platform specified

Example:

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
"linux/amd64"
Return type

Optional[str]