Interface IDockerImageAssetProps
Props for DockerImageAssets.
Inherited Members
Namespace: Amazon.CDK.AWS.Ecr.Assets
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IDockerImageAssetProps : IDockerImageAssetOptions, IFileFingerprintOptions, IFileCopyOptions
Syntax (vb)
Public Interface IDockerImageAssetProps
Inherits IDockerImageAssetOptions, IFileFingerprintOptions, IFileCopyOptions
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Ecr.Assets;
var asset = new DockerImageAsset(this, "MyBuildImage", new DockerImageAssetProps {
Directory = Join(__dirname, "my-image"),
BuildArgs = new Dictionary<string, string> {
{ "HTTP_PROXY", "http://10.20.30.2:1234" }
},
Invalidation = new DockerImageAssetInvalidationOptions {
BuildArgs = false
}
});
Synopsis
Properties
Directory | The directory where the Dockerfile is stored. |
Properties
Directory
The directory where the Dockerfile is stored.
string Directory { get; }
Property Value
System.String
Remarks
Any directory inside with a name that matches the CDK output folder (cdk.out by default) will be excluded from the asset