Use specific Chrome version

This commit is contained in:
Eduardo Colabardini 2021-06-02 22:15:21 -03:00
parent b8a59cda17
commit fa45d4e5a6

View File

@ -4,12 +4,12 @@ FROM python:3.8
# We need wget to set up the PPA and xvfb to have a virtual screen and unzip to install the Chromedriver # We need wget to set up the PPA and xvfb to have a virtual screen and unzip to install the Chromedriver
RUN apt-get update RUN apt-get update
RUN apt-get install -y libgconf-2-4 wget xvfb unzip RUN apt-get install -y libgconf-2-4 wget xvfb unzip
# Set up the Chrome PPA
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - # Install Chrome (compatible version with chromedriver below)
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list ARG CHROME_VERSION="87.0.4280.141-1"
# Update the package list and install chrome RUN wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb \
RUN apt-get update -y && apt install -y /tmp/chrome.deb \
RUN apt-get install -y google-chrome-stable && rm /tmp/chrome.deb
# RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb # RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install # RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install