File size: 659 Bytes
1e4e98d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ubuntu:22.04
FROM python:3.9

RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"

WORKDIR /app

RUN apt-get update 
RUN apt-get install wget 

RUN apt install -y git-all 
RUN apt-get install -y dssp 

RUN pip install --upgrade pip
RUN pip install git+https://github.com/a-r-j/graphein.git
RUN pip install numpy scipy torch==2.2 transformers==4.44.2
RUN pip install torch-geometric
RUN pip 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 pip install gradio


COPY --chown=user . /app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]