FROM python:3.11-slim RUN apt-get update && apt-get install -y wget gnupg && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY . . RUN pip install --no-cache-dir playwright playwright-stealth httpx fastapi uvicorn RUN playwright install chromium RUN playwright install-deps chromium EXPOSE 7860 ENV PYTHONUNBUFFERED=1 CMD ["python", "main.py"]