File size: 618 Bytes
95e98bb
 
 
 
 
 
 
d886ce4
95e98bb
 
 
 
 
 
 
d886ce4
 
 
95e98bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.10.6
WORKDIR  /code

ADD requirements.txt  /code/requirements.txt
ADD app.py index.py model.py get_patches.py /code/

RUN apt-get update && apt-get upgrade -y

RUN apt-get install -y software-properties-common
RUN apt-get install -y build-essential cmake pkg-config \
    && apt-get install -y libx11-dev libatlas-base-dev \
    && apt-get install -y libgtk-3-dev libboost-python-dev

RUN pip install --timeout=100000 -r requirements.txt

ENV MPLCONFIGDIR=/usr/src/app/.config/matplotlib
RUN mkdir -p /usr/src/app/.config/matplotlib

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]