Skip to content

Instantly share code, notes, and snippets.

@kfatehi
Last active January 2, 2016 03:19
Show Gist options
  • Save kfatehi/8243530 to your computer and use it in GitHub Desktop.
Save kfatehi/8243530 to your computer and use it in GitHub Desktop.
Dockerfile with Xvfb, Chromedriver
# Xvfb, Google Chrome, Chromedriver, Ruby, Node.js, Redis, Mongo
FROM ubuntu:12.04
MAINTAINER Keyvan Fatehi <[email protected]>
RUN apt-get update -y -q
RUN apt-get install -y -q unzip xvfb libgtk2.0-0 libnss3 libgconf-2-4
# fix https://code.google.com/p/chromium/issues/detail?id=318548
#RUN mkdir -p /usr/share/desktop-directories
#RUN apt-get install -y -q xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic
# Add Chromedriver 2.8
ADD http://chromedriver.storage.googleapis.com/2.8/chromedriver_linux64.zip /srv/
RUN unzip /srv/chromedriver_linux64.zip -d /usr/local/bin
# also want Ruby, Node.js, Redis, Mongo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment