Install a more modern version of phantomjs that can run on 12.04 headless.

This commit is contained in:
jakedt 2014-04-21 18:53:03 -04:00
parent 09e26010c9
commit db70175a9f

View file

@ -12,7 +12,15 @@ RUN add-apt-repository ppa:chris-lea/node.js
RUN apt-get update
# New ubuntu packages should be added as their own apt-get install lines below the existing install commands
RUN apt-get install -y git python-virtualenv python-dev phantomjs libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev libevent-dev gdebi-core g++ libmagic1 nodejs libssl1.0.0
RUN apt-get install -y git python-virtualenv python-dev libjpeg8 libjpeg62-dev libevent-dev gdebi-core g++ libmagic1 libssl1.0.0
# PhantomJS
RUN apt-get install -y libfreetype6 libfreetype6-dev fontconfig
ADD https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 phantomjs.tar.bz2
RUN tar xjf phantomjs.tar.bz2 && ln -s `pwd`/phantomjs*/bin/phantomjs /usr/bin/phantomjs
# Grunt
RUN apt-get install -y nodejs
RUN npm install -g grunt-cli
ADD binary_dependencies binary_dependencies