# Building Docker Images on M1 Mac for Other Platforms > [!META]- Inline Metadata > [status:: boat] > [source:: [[MLE-110#^2ihdoy|transient learning]]] > [tags:: #note/evergreen #state/boat #concepts/aws/cdk #concepts/containerization/docker #concepts/aws/lambda ] > [up:: [[Docker MOC]]] In order to build Docker images for Lambda functions with CDK on ARM or other non-Intel platforms, but want the Lambda to be on an x86_64 platform, use the `platform` parameter with the `from_image_asset()` function. ```python _lambda.DockerImage_function( ... code=_lambda.DockerImageCode.from_image_asset( directory="./lambda", file="./audience_harvest/Dockerfile", platform=ecr_assets.Platform.LINUX_AMD64, ), ... ) ``` `ecr_assets` is a CDK package that also needs to be imported from the main `aws_cdk` package.