File size: 465 Bytes
76962bf
04abd05
76962bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use an official Python runtime
FROM python:3.10-slim

# Set the working directory
WORKDIR /app

# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the backend files
COPY . .

# Expose the mandatory Hugging Face port
EXPOSE 7860

# Run the FastAPI server. Update "main:app" to "app:app" if app.py is your true entrypoint.
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]