15 lines
412 B
Docker
15 lines
412 B
Docker
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 driver.py /app/
|
|
WORKDIR /app
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["google-chrome", "--headless", "--no-sandbox", "--disable-gpu", "--remote-debugging-port=3000", "--remote-debugging-address=0.0.0.0"]
|