Open phelps-sg opened 1 month ago
According to aws lambda python docs, amazon/aws-lambda-python:3.12 is built on Amazon Linux 2023 as a base image, which does include a more modern GLIBC (the 2.26 on the 3.11 base image is 7 years old now!).
There's also the option of building a 2023 based python 3.11 image yourself or building ironcore-alloy
statically linked to your preferred version of musl yourself.
I'll leave this issue open though, as a statically linked musl version would be nice to provide. The biggest issue I forsee would be that we don't want it to be the default, so we'd either need some trickiness to get the pip install
to only pull down the musl version for each architecture when glibc
isn't available in the right version, or have it as a second class citizen downloaded from releases and installed manually.
I'll also make a PR adding libc 2.29+
as a pre-requisite to the README for now.
When installing Python dependency ironcore-alloy 0.11.0 via pip from within an amazon/aws-lambda-python:3.11 docker container I get the error below.
I think for maximum portability the rust binary should be built by linking statically with MUSL?