File size: 307 Bytes
246848e
 
 
 
ef642ff
d005abf
246848e
 
 
 
 
d005abf
246848e
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.9-slim

WORKDIR /code

ENV TRANSFORMERS_CACHE=./code/cache

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

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

COPY ./app /code/app
COPY ./cache /code/cache

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