class Platform
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Ecr.Assets.Platform |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsecrassets#Platform |
![]() | software.amazon.awscdk.services.ecr.assets.Platform |
![]() | aws_cdk.aws_ecr_assets.Platform |
![]() | aws-cdk-lib » aws_ecr_assets » Platform |
platform supported by docker.
Example
import { DockerImageAsset, Platform } from 'aws-cdk-lib/aws-ecr-assets';
const asset = new DockerImageAsset(this, 'MyBuildImage', {
directory: path.join(__dirname, 'my-image'),
platform: Platform.LINUX_ARM64,
})
Properties
Name | Type | Description |
---|---|---|
platform | string | The platform to use for docker build. |
static LINUX_AMD64 | Platform | Build for linux/amd64. |
static LINUX_ARM64 | Platform | Build for linux/arm64. |
platform
Type:
string
The platform to use for docker build.
static LINUX_AMD64
Type:
Platform
Build for linux/amd64.
static LINUX_ARM64
Type:
Platform
Build for linux/arm64.
Methods
Name | Description |
---|---|
static custom(platform) | Used to specify a custom platform Use this if the platform name is not yet supported by the CDK. |
static custom(platform)
public static custom(platform: string): Platform
Parameters
- platform
string
— The platform to use for docker build.
Returns
Used to specify a custom platform Use this if the platform name is not yet supported by the CDK.