diff --git a/docker/Dockerfile b/docker/Dockerfile index 7582417..f21331f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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 RUN apt-get update 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 - -RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list -# Update the package list and install chrome -RUN apt-get update -y -RUN apt-get install -y google-chrome-stable + +# Install Chrome (compatible version with chromedriver below) +ARG CHROME_VERSION="87.0.4280.141-1" +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 \ + && apt install -y /tmp/chrome.deb \ + && rm /tmp/chrome.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