Docker-ized PhantomJS 2.2
A Dockerfile to build PhantomJS 2.2.0-develop for Linux from source.
How do I get the image?
There is an Automated Build on hub.docker.com, so getting the image is easy:
docker pull youcruit/phantomjs2:latest
How do I use it?
Option 1: Run it from inside a Docker container
docker run youcruit/phantomjs2.2 phantomjs -v
Option 2: Extract the binary so you can run it without Docker
Install run-time dependencies
apt-get install -y libicu-dev libfontconfig1-dev libjpeg-dev libfreetype6
docker pull youcruit/phantomjs2:latest docker run -name temp youcruit/phantomjs2 docker cp temp:phantomjs/phantomjs2/bin/phantomjs ~/phantomjs
~/phantomjs -v 2.2.0-develop
This began as a clone of rosenhouse's phantomjs2 build. While most have been rewritten in the Dockerfile,
that project still remains the best stable phantomjs2 build due to it's small size.