Xvfb exits immediately on the production LXC (no framebuffer device support), so headed mode was never working. Switch to headless=True and remove Xvfb from the Dockerfile entirely. Stealth coverage is unchanged: playwright-stealth patches webdriver, plugins and chrome.runtime; the residential proxy + sticky session provide the GB residential fingerprint; homepage warmup carries real session cookies into the search. --enable-unsafe-swiftshader and --disable-blink-features=AutomationControlled are kept. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
22 lines
448 B
Docker
22 lines
448 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
libpq-dev \
|
|
postgresql-client \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Playwright + Chromium for Booking.com scraper
|
|
RUN playwright install chromium --with-deps
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|