Created
November 2, 2015 05:53
-
-
Save joelbowen/758c9779b3d019380793 to your computer and use it in GitHub Desktop.
Aptible: PhantomJS via Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerfile | |
FROM quay.io/aptible/autobuild | |
ENV PHANTOMJS_VERSION 1.9.8 | |
RUN \ | |
apt-get update && \ | |
apt-get upgrade -y && \ | |
apt-get install -y vim git wget libfreetype6 libfontconfig bzip2 && \ | |
mkdir -p /srv/var && \ | |
wget -q --no-check-certificate -O /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 && \ | |
tar -xjf /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C /tmp && \ | |
rm -f /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 && \ | |
mv /tmp/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/ /srv/var/phantomjs && \ | |
ln -s /srv/var/phantomjs/bin/phantomjs /usr/bin/phantomjs && \ | |
git clone https://github.com/n1k0/casperjs.git /srv/var/casperjs && \ | |
ln -s /srv/var/casperjs/bin/casperjs /usr/bin/casperjs && \ | |
apt-get autoremove -y && \ | |
apt-get clean all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Phantom JS 2.0.0 must be built from source (at time of this comment) and was very unruly, therefore sticking with 1.9.8