skipped 33 lines 34 34 35 35 #START{ 36 36 FROM python:3.10 37 - #FROM ubuntu 38 - #FROM debian:jessie 39 37 40 38 # start install google-chrome: 41 - # Adding trusting keys to apt for repositories 39 + # Download the Chrome Driver 42 40 RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - 43 - 44 - # Adding Google Chrome to the repositories 45 41 RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' 46 - 47 - # Updating apt to see 48 42 RUN apt-get update -y 49 - 50 - # install Google Chrome 51 43 RUN apt-get install -y google-chrome-stable 52 44 53 - # Installing Unzip 54 - #RUN apt-get install -yqq unzip 55 - 56 - # Download the Chrome Driver 57 - #RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - 58 - #RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' 59 - #RUN apt-get update -y 60 - #RUN apt-get install -y google-chrome-stable 61 - 62 45 # install chromedriver 63 46 RUN apt-get install -yqq unzip 64 47 RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip 65 48 RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/ 66 - 67 - 68 - #ENV CHROME_VERSION "google-chrome-stable" 69 - #RUN sed -i -- 's&deb http://deb.debian.org/debian jessie-updates main&#deb http://deb.debian.org/debian jessie-updates main&g' /etc/apt/sources.list \ 70 - # && apt-get update && apt-get install wget -y 71 - #ENV CHROME_VERSION "google-chrome-stable" 72 - #RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ 73 - # && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list \ 74 - # && apt-get update && apt-get -qqy install ${CHROME_VERSION:-google-chrome-stable} 75 - 76 - 77 49 # end install google-chrome. 78 50 79 51 WORKDIR /wrdir skipped 16 lines