# Base image (small and stable) FROM python:3.12-slim # Set working directory WORKDIR /app # Copy requirements COPY requirements.txt . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy project files COPY . . # Run app CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]