UNPKG

889 BTypeScriptView Raw
1import { DockerImageAssetOptions } from '@aws-cdk/aws-ecr-assets';
2import { ContainerDefinition } from '../container-definition';
3import { ContainerImage, ContainerImageConfig } from '../container-image';
4import { Construct as CoreConstruct } from '@aws-cdk/core';
5/**
6 * The properties for building an AssetImage.
7 */
8export interface AssetImageProps extends DockerImageAssetOptions {
9}
10/**
11 * An image that will be built from a local directory with a Dockerfile
12 */
13export declare class AssetImage extends ContainerImage {
14 private readonly directory;
15 private readonly props;
16 /**
17 * Constructs a new instance of the AssetImage class.
18 *
19 * @param directory The directory containing the Dockerfile
20 */
21 constructor(directory: string, props?: AssetImageProps);
22 bind(scope: CoreConstruct, containerDefinition: ContainerDefinition): ContainerImageConfig;
23}