File size: 433 Bytes
84a8b99
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.9

WORKDIR /code

# Copy your requirements first for better caching
COPY ./requirements.txt /code/requirements.txt

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

# Copy all your files (app.py, index.html) into the container
COPY . .

# Start the FastAPI app using Uvicorn on port 7860 (Required by HF Spaces)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]