File size: 322 Bytes
6f4e455
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.10-slim

WORKDIR /app

COPY requirements.txt .

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

COPY . .

# For Hugging Face Spaces - it expects port 7860 by default
ENV PORT=7860

# Entry point that will be used by Hugging Face Spaces
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "${PORT}"]