File size: 338 Bytes
0632cd1
 
 
 
5863f5e
0632cd1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.10

ENV PYTHONDONTWRITEBYCODE 1
ENV PYTHONBUFFERED 1
ENV TRANSFORMERS_CACHE=/code/.cache/huggingface/transformers

RUN pip install --upgrade pip

WORKDIR /code

ADD . /code

RUN chmod -R 777 /code

RUN pip install -r requirements.txt

COPY . .

EXPOSE 7860

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