Skip to content

Instantly share code, notes, and snippets.

@ruckuus
Created April 16, 2014 17:17
Show Gist options
  • Save ruckuus/10909424 to your computer and use it in GitHub Desktop.
Save ruckuus/10909424 to your computer and use it in GitHub Desktop.
Create casperjs docker image
FROM ubuntu
RUN apt-get update
RUN apt-get install -y git-core curl libfreetype6 libfontconfig
RUN curl -LO https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
RUN tar xjfv phantomjs-1.9.7-linux-x86_64.tar.bz2 -C /usr/local/
RUN ln -sf /usr/local/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
RUN git clone https://github.com/n1k0/casperjs.git /usr/local/casperjs
RUN ln -sf /usr/local/casperjs/bin/casperjs /usr/local/bin/casperjs
RUN rm -f phantomjs-1.9.7-linux-x86_64.tar.bz2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment