File size: 385 Bytes
7ddb64a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Use official Python base image
FROM python:3.10-slim

# Set working directory
WORKDIR /app

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

# Copy app source code
COPY . .

# Expose the required HF port
EXPOSE 5050

# Start the FastAPI app on port 7860
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "5050"]