How to install github repository on the community cloud?

hello, I want to put my app on the community cloud:
https://share.streamlit.io/

But my app needs to install packages like this:

!git clone https://github.com/theislab/scarches
%cd scarches
!pip install .
!pip install -q torch-scatter -f https://data.pyg.org/whl/torch-1.12.1+cu113.html
!pip install -q torch-sparse -f https://data.pyg.org/whl/torch-1.12.1+cu113.html
!pip install -q git+https://github.com/pyg-team/pytorch_geometric.git

How can I deloy my app to the community cloud?
Should I make a docker file?
Is there some docs?

Thanks !!!

No, this is not possible on streamlit cloud.
However, this would be an option for other cloud providers or self-hosting.

See also the Requirements File Format.