# Dockerfile FROM python:3.9-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . # Hugging Face Spaces expect app to listen on port 7860 EXPOSE 7860 # This ensures your app reads PORT from env (which Hugging Face sets to 7860) CMD ["python", "app.py"]