DockerImageSource

class aws_cdk.cloud_assembly_schema.DockerImageSource(*, directory, docker_build_args=None, docker_build_target=None, docker_file=None)

Bases: object

Properties for how to produce a Docker image from a source.

Parameters
  • directory (str) – The directory containing the Docker image build instructions. This path is relative to the asset manifest location.

  • docker_build_args (Optional[Mapping[str, str]]) – Additional build arguments. Default: - No additional build arguments

  • docker_build_target (Optional[str]) – Target build stage in a Dockerfile with multiple build stages. Default: - The last stage in the Dockerfile

  • docker_file (Optional[str]) – The name of the file with build instructions. Default: “Dockerfile”

Attributes

directory

The directory containing the Docker image build instructions.

This path is relative to the asset manifest location.

Return type

str

docker_build_args

Additional build arguments.

Default
  • No additional build arguments

Return type

Optional[Mapping[str, str]]

docker_build_target

Target build stage in a Dockerfile with multiple build stages.

Default
  • The last stage in the Dockerfile

Return type

Optional[str]

docker_file

The name of the file with build instructions.

Default

“Dockerfile”

Return type

Optional[str]