Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Commit

Permalink
reverted can't install chrome in gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
code-rgb authored Nov 22, 2020
1 parent 89fc72d commit d2ebd17
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

FROM gitpod/workspace-full

RUN sudo apt-get update \
Expand All @@ -11,25 +11,5 @@ RUN sudo apt-get update \
neofetch \
ffmpeg \
&& 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
RUN curl https://cli-assets.heroku.com/install.sh | sh

0 comments on commit d2ebd17

Please sign in to comment.