Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.

fix: python docker build architecture #1082

Merged
merged 4 commits into from
Oct 16, 2024
Merged

fix: python docker build architecture #1082

merged 4 commits into from
Oct 16, 2024

Conversation

mtmeyer
Copy link
Contributor

@mtmeyer mtmeyer commented Sep 17, 2024

Currently when you build a docker image for python lambdas on a machine with a different architecture to the target lambda, the lambda will fail to run.

This PR passes through the architecture the lambda uses to Pulumi's docker build.

Tested this locally and I can now run sst deploy from my M1 mac and it works on an x86_64 lambda.

Closes sst/sst#4115

@walln
Copy link
Contributor

walln commented Sep 17, 2024

Thank you! I totally forgot to add this back after bashing my head against the wall with buildx cross platform images.

@fwang
Copy link
Contributor

fwang commented Oct 16, 2024

Thanks @mtmeyer!

@fwang fwang merged commit c4fffc9 into sst:dev Oct 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Python function container build targets wrong architecture
3 participants