File size: 326 Bytes
7505319
 
 
 
d5b3766
 
 
7505319
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.11-slim

WORKDIR /code

ENV HF_HOME=/code/cache
RUN mkdir -p /code/cache && chmod -R 777 /code/cache

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

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

COPY . /code/

EXPOSE 7860

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