FROM python:3.12-slim WORKDIR /code # Install system dependencies RUN apt-get update && apt-get install -y libgl1 libglib2.0-0 # Copy dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy app code COPY . . # Run FastAPI with Uvicorn on the correct file and port CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]