I have a Linux based NodeJS Web App resource on Azure.
I want to deploy a Python 3.12 based continuous Web Job under this Web App. I have added a run.sh which contains installing the requirements.txt and then running main.py, which contains an infinite while loop for running the job.
What I have noticed is that there is a Python 3.11 available which is not ideal, as my web job was written for 3.12. The 3.11 is also externally managed meaning i cant create a venv and also pip or pip3 are unknown commands, so I can't install any pip packages (ensurepip is also not available). I have tried to install 3.12 in various ways but none worked (building from source, getting from the Python website via curl etc..). I also tried copying over the venv folder via my zip deploy but the file is too big. There are also no "Extensions" on the Linux Kudu to add a Python App. I am fairly new to Azure and can't find anything related to my issue in the official documentation.
What is the general way to add a certain Python version, and install pip dependencies on a NodeJs based Web App that runs on Linux?