FROM selenium/standalone-chrome:latest USER root RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/* RUN pip3 install --break-system-packages undetected-chromedriver beautifulsoup4 COPY scrape.py /app/ WORKDIR /app VOLUME ["/output"] CMD ["python3", "scrape.py"]