File size: 491 Bytes
439e935
2a930b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.12-slim

# Set working directory
WORKDIR /app

# System dependencies (optional, include if needed)
# RUN apt-get update && apt-get install -y libgl1-mesa-glx

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

# Copy entire project
COPY . .

# Expose FastAPI default port
EXPOSE 7860

# Run FastAPI with uvicorn (you can change --host/--port as needed)
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]