Hello
If pinning the packages in requirements.txt is not an option for you I would recommend you to deploy your app in a WebApp containerized environment.
You can create a custom Docker image with the required glibc
version. Start with a base image that includes glibc
2.34 or higher, or manually upgrade it within the Dockerfile.
You could use it to upgrade glibc
to version 2.34 or higher.
Here’s a Dockerfile
:
# Use a base image with Python 3.12
FROM python:3.12-slim
# Install prerequisites for building glibc
RUN apt-get update && apt-get install -y \
build-essential \
manpages-dev \
wget
# Download and compile glibc
RUN wget http://ftp.gnu.org/gnu/libc/glibc-2.34.tar.gz && \
tar -xvzf glibc-2.34.tar.gz && \
cd glibc-2.34 && \
mkdir build && cd build && \
../configure --prefix=/opt/glibc-2.34 && \
make -j$(nproc) && \
make install && \
cd ../../ && rm