Skip to content

(assets): Dockerfiles built on ARM do not run on Linux instances #25362

Open
@comcalvi

Description

@comcalvi

Describe the bug

Instead of:

FROM  node:16-alpine3.13

Use:

FROM  --platform=linux/amd64 node:16-alpine3.13

If building on an ARM machine, excluding --platform will result in an obscure deployment error.

Expected Behavior

success

Current Behavior

Deployment error

Reproduction Steps

Run the EKS Integration test integ.eks-service-account-sdk-call with

FROM  public.ecr.aws/docker/library/node:16-alpine3.13

at the top of the dockerfile.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.76.0

Framework Version

No response

Node.js Version

16

OS

OSX

Language

Typescript, Python, .NET, Java, Go

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/assetsRelated to the @aws-cdk/assets packagebugThis issue is a bug.effort/smallSmall work item – less than a day of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions