Skip to content

Instantly share code, notes, and snippets.

@cupnoodle
Created March 27, 2019 17:53
Show Gist options
  • Save cupnoodle/57aaf17f61832ce2862a07ce10f55f9c to your computer and use it in GitHub Desktop.
Save cupnoodle/57aaf17f61832ce2862a07ce10f55f9c to your computer and use it in GitHub Desktop.
ruby chrome dockerfile
FROM ruby:2.5.0
RUN apt-get update && apt-get install -y --no-install-recommends wget xvfb xauth unzip \
&& 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 \
&& apt-get update -y \
&& apt-get install -y google-chrome-stable \
&& wget -q --continue -P /usr/local/bin "https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip" \
&& unzip /usr/local/bin/chromedriver* -d /usr/local/bin \
&& rm /usr/local/bin/chromedriver*.zip \
\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment