| FROM python:3.9 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user . /app | |
| RUN apt-get update | |
| RUN apt-get install wget | |
| RUN apt install -y git-all | |
| RUN apt-get install -y dssp | |
| RUN pip3 install --upgrade pip | |
| RUN pip3 install git+https://github.com/a-r-j/graphein.git | |
| RUN pip3 install numpy scipy torch==2.2 transformers==4.44.2 | |
| RUN pip3 install torch-geometric | |
| RUN pip3 install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.2.0+cpu.html | |
| RUN pip3 install gradio | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |