From 89fc72dc864c155d85184adaddabc8be6b28f05b Mon Sep 17 00:00:00 2001 From: Leorio Paradinight <62891774+code-rgb@users.noreply.github.com> Date: Sun, 22 Nov 2020 11:27:32 +0530 Subject: [PATCH] Update .gitpod.Dockerfile --- .gitpod.Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index d33f73466..2d22a90cf 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -13,3 +13,23 @@ RUN sudo apt-get update \ && sudo rm -rf /var/lib/apt/lists/* RUN curl https://cli-assets.heroku.com/install.sh | sh + +# install chrome +RUN mkdir -p /tmp/ && \ + cd /tmp/ && \ + wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ + # -f ==> is required to --fix-missing-dependancies + dpkg -i ./google-chrome-stable_current_amd64.deb; apt -fqqy install && \ + # clean up the container "layer", after we are done + rm ./google-chrome-stable_current_amd64.deb + +# install chromedriver +RUN mkdir -p /tmp/ && \ + cd /tmp/ && \ + wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip && \ + unzip /tmp/chromedriver.zip chromedriver -d /usr/bin/ && \ + # clean up the container "layer", after we are done + rm /tmp/chromedriver.zip + +ENV GOOGLE_CHROME_DRIVER /usr/bin/chromedriver +ENV GOOGLE_CHROME_BIN /usr/bin/google-chrome-stable