diff --git a/Dockerfile b/Dockerfile index bba50bc79..f0d05c561 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,11 +11,28 @@ RUN apt-get update && \ dos2unix && \ rm -rf /var/lib/apt/lists/* +# Install wget and add Google Chrome repository +# RUN apt-get install -y wget +# RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ +# && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list +# RUN apt-get update && apt-get -y install google-chrome-stable + +# Install Chrome WebDriver +RUN CHROMEDRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` && \ + mkdir -p /opt/chromedriver-$CHROMEDRIVER_VERSION && \ + curl -sS -o /tmp/chromedriver_linux64.zip http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip && \ + unzip -qq /tmp/chromedriver_linux64.zip -d /opt/chromedriver-$CHROMEDRIVER_VERSION && \ + rm /tmp/chromedriver_linux64.zip && \ + chmod +x /opt/chromedriver-$CHROMEDRIVER_VERSION/chromedriver && \ + ln -fs /opt/chromedriver-$CHROMEDRIVER_VERSION/chromedriver /usr/local/bin/chromedriver + +# Install Google Chrome +RUN curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ + echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \ + apt-get -yqq update && \ + apt-get -yqq install google-chrome-stable && \ + rm -rf /var/lib/apt/lists/* -RUN apt-get install -y wget -RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ - && echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list -RUN apt-get update && apt-get -y install google-chrome-stable # Install Poetry and dependencies