# Use a Python ≥3.10 image so google-generativeai and supabase install correctly FROM python:3.10-slim WORKDIR /app # Copy only requirements first to leverage layer caching COPY requirements.txt . # (Optional) Upgrade pip to latest RUN pip install --no-cache-dir --upgrade pip # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy your app code COPY . . # Expose the port your app listens on EXPOSE 7860 # Run with Gunicorn CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]