# Use official Python runtime FROM python:3.11 # Set working directory WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy all files COPY . . # Expose port 7860 (Hugging Face requirement) EXPOSE 7860 # Run with Gunicorn CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]