/phantomjs-sandbox

A Docker sandbox for compiling PhantomJS from source

Primary LanguageDockerfileGNU General Public License v3.0GPL-3.0

phantomjs-sandbox

A companion repository for this blog post, about making reusable build environments for compiling stuff from source with Docker.

Run!

# optional build-arg for specifying which code revision
# will be checked out (2.1.1 by default)
$ git clone https://github.com/ervinb/phantomjs-sandbox.git && cd phantomjs-sandbox
$ docker build -t phantomjs-sandbox-211 --build-arg TAG=2.1.1 .
# reload your shotgun, twice
# (and get the shells from the factory)
docker run --rm --volume $(pwd)/trunk-$(date +%s):/phantomjs-src/bin phantomjs-sandbox
$ ./trunk-1482688158/phantomjs --version
> 2.1.1