class DockerImageAsset (construct)
An asset that represents a Docker image.
The image will be created in build time and uploaded to an ECR repository.
new DockerImageAsset(scope: Construct, id: string, props: DockerImageAssetProps)
|directory||The directory where the Dockerfile is stored.|
|build||Build args to pass to the |
|exclude?||Glob patterns to exclude from the copy.|
|extra||Extra information to encode into the fingerprint (e.g. build instructions and other inputs).|
|file?||Path to the Dockerfile (relative to the directory).|
|follow?||A strategy for how to handle symlinks.|
|repository||ECR repository name.|
|target?||Docker target to build to.|
The directory where the Dockerfile is stored.
(optional, default: no build args are passed)
Build args to pass to the
docker build command.
Since Docker build arguments are resolved before deployment, keys and
values cannot refer to unresolved tokens (such as
(optional, default: nothing is excluded)
Glob patterns to exclude from the copy.
(optional, default: hash is only based on source content)
Extra information to encode into the fingerprint (e.g. build instructions and other inputs).
(optional, default: 'Dockerfile')
Path to the Dockerfile (relative to the directory).
(optional, default: Never)
A strategy for how to handle symlinks.
(optional, default: the default ECR repository for CDK assets)
ECR repository name.
Specify this property if you need to statically address the image, e.g. from a Kubernetes Pod. Note, this is only the repository name, without the registry and the tag parts.
(optional, default: no target)
Docker target to build to.
|image||The full URI of the image (including a tag).|
|node||Construct tree node which offers APIs for interacting with the construct tree.|
|repository||Repository where the image is stored.|
|source||A hash of the source of this asset, which is available at construction time.|
The full URI of the image (including a tag).
Use this reference to pull the asset.
Construct tree node which offers APIs for interacting with the construct tree.
Repository where the image is stored.
A hash of the source of this asset, which is available at construction time.
As this is a plain string, it can be used in construct IDs in order to enforce creation of a new resource when the content hash has changed.
|to||Returns a string representation of this construct.|
public toString(): string
Returns a string representation of this construct.