FROM python:3.10-slim # Install basic dependencies RUN apt-get update && apt-get install -y \ wget \ gnupg \ unzip \ curl \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY requirements.txt requirements.txt RUN pip install -r requirements.txt # Install Playwright browsers after Python packages are installed ENV PLAYWRIGHT_BROWSERS_PATH=/tmp/playwright-browsers RUN playwright install chromium --with-deps # Verify the installation RUN playwright --version && ls -la /tmp/playwright-browsers/ COPY . . CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]