# Use a minimal Python image FROM python:3.10-slim # Install Flask, requests, and Gunicorn RUN pip install --no-cache-dir flask requests gunicorn # Set working directory WORKDIR /app # Copy application code COPY app.py /app/app.py # Expose port 7860 (required by Hugging Face Spaces) EXPOSE 7860 # Run via Gunicorn for production‐ready serving CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]