FROM python:3.9-slim WORKDIR /app COPY . /app/ RUN pip install --no-cache-dir -r requirements.txt # Make port 7860 available (Hugging Face Spaces uses this port) EXPOSE 7860 # Set environment variables ENV PORT=7860 ENV HOST=0.0.0.0 # Run the application CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]