Dockerfile-Chrome-Selenium 944 B

12345678910111213141516171819
  1. FROM debian:stable-slim
  2. RUN apt update -y \
  3. && apt install --no-install-recommends --no-install-suggests -y wget unzip python3 python3-pip \
  4. && wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
  5. && dpkg -i google-chrome-stable_current_amd64.deb ; apt-get -f -y --no-install-recommends --no-install-suggests install \
  6. && dpkg -i google-chrome-stable_current_amd64.deb \
  7. && rm google-chrome-stable_current_amd64.deb \
  8. && wget https://chromedriver.storage.googleapis.com/92.0.4515.107/chromedriver_linux64.zip \
  9. && unzip chromedriver_linux64.zip \
  10. && rm chromedriver_linux64.zip \
  11. && mv chromedriver /usr/bin/chromedriver \
  12. && apt-get clean \
  13. && apt-get autoremove \
  14. && rm -rf /var/lib/apt/lists/* \
  15. && pip3 install selenium
  16. # docker build -t chrome -f Dockerfile-Chrome-Selenium .
  17. # docker run -d --restart=always -v /app:/app --name chrome chrome python3 -m http.server