File size: 385 Bytes
7432086
 
1dbbbda
 
 
7432086
 
1dbbbda
084cf20
7432086
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.10.9

ENV TRANSFORMERS_CACHE=/tmp/huggingface_cache
ENV HF_HOME=/tmp/huggingface_cache

WORKDIR /code

RUN mkdir -p /tmp/huggingface_cache && chmod -R 777 /tmp/huggingface_cache

COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY . .

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