FROM python:3.10-slim # Install chromium and the matching driver # Cleaned of hidden characters and using standard package names RUN apt-get update && apt-get install -y --no-install-recommends \ chromium \ chromium-driver \ && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy and install requirements COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy your app code COPY . . # HF Spaces requires binding to 0.0.0.0:7860 CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]