Skip to content

Instantly share code, notes, and snippets.

@cupnoodle
Created August 4, 2018 16:19
Show Gist options
  • Save cupnoodle/dd760e5c3372005a8547d17c73bc9ef2 to your computer and use it in GitHub Desktop.
Save cupnoodle/dd760e5c3372005a8547d17c73bc9ef2 to your computer and use it in GitHub Desktop.
Ruby base image 2.5 + chrome Dockerfile
FROM ruby:2.5.0
RUN apt-get update && apt-get install -y --no-install-recommends wget xvfb 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 "http://chromedriver.storage.googleapis.com/2.40/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