File size: 401 Bytes
f8cd8cc
 
 
2fb3bf7
f8cd8cc
 
 
 
 
2fb3bf7
f8cd8cc
 
 
2fb3bf7
 
 
f8cd8cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile

FROM python:3.12-slim

WORKDIR /app

COPY requirements.txt .

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

COPY . /app

ENV HF_HOME=/tmp/huggingface_home

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