25 lines
922 B
TypeScript
25 lines
922 B
TypeScript
import type { Construct } from 'constructs';
|
|
import type { DockerImageAssetOptions } from '../../../aws-ecr-assets';
|
|
import type { ContainerDefinition } from '../container-definition';
|
|
import type { ContainerImageConfig } from '../container-image';
|
|
import { ContainerImage } from '../container-image';
|
|
/**
|
|
* The properties for building an AssetImage.
|
|
*/
|
|
export interface AssetImageProps extends DockerImageAssetOptions {
|
|
}
|
|
/**
|
|
* An image that will be built from a local directory with a Dockerfile
|
|
*/
|
|
export declare class AssetImage extends ContainerImage {
|
|
private readonly directory;
|
|
private readonly props;
|
|
/**
|
|
* Constructs a new instance of the AssetImage class.
|
|
*
|
|
* @param directory The directory containing the Dockerfile
|
|
*/
|
|
constructor(directory: string, props?: AssetImageProps);
|
|
bind(scope: Construct, containerDefinition: ContainerDefinition): ContainerImageConfig;
|
|
}
|