FROM python:3.12-slim WORKDIR /app RUN pip install --no-cache-dir flask cloudscraper beautifulsoup4 lxml gunicorn COPY app.py . EXPOSE 7860 CMD ["gunicorn", "-b", "0.0.0.0:7860", "-w", "4", "--threads", "4", "--timeout", "120", "app:app"]