# Use Python base image FROM python:3.10-slim # Set working directory WORKDIR /app # Copy requirements and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of your app COPY . . # Expose port 7860 for Hugging Face Spaces (or adjust as needed) EXPOSE 7860 # Run Flask app using Gunicorn (production WSGI server) CMD ["gunicorn", "-c", "gunicorn_conf.py", "main:app"]