Files

17 lines
483 B
Docker

FROM selenium/standalone-chromium:4.43.0-20260404
USER root
RUN apt-get update && apt-get install -y python3-pip
COPY requirements.txt /tmp/requirements.txt
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt --break-system-packages
RUN echo 'from undetected_chromedriver.patcher import Patcher\n\
Patcher(executable_path="/usr/bin/chromedriver").patch()\n\
print("Chromedriver patched inside Docker successfully!")' > /tmp/patch.py
RUN python3 /tmp/patch.py
USER seluser