Public | Automated Build

Last pushed: 2 years ago
Dockerfile
FROM debian:latest # Dependencies we just need for building phantomjs ENV buildDependencies\ wget unzip python build-essential g++ flex bison gperf\ ruby perl libsqlite3-dev libssl-dev libpng-dev # Dependencies we need for running phantomjs ENV phantomJSDependencies\ libicu-dev libfontconfig1-dev libjpeg-dev libfreetype6 openssl # Installing phantomjs RUN \ # Installing dependencies apt-get update -yqq \ && apt-get install -fyqq ${buildDependencies} ${phantomJSDependencies}\ # Downloading src, unzipping & removing zip && mkdir phantomjs \ && cd phantomjs \ && wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.0.0-source.zip \ && unzip phantomjs-2.0.0-source.zip \ && rm -rf /phantomjs/phantomjs-2.0.0-source.zip \ # Building phantom && cd phantomjs-2.0.0/ \ && ./build.sh --jobs 1 --confirm --silent \ # Removing everything but the binary && ls -A | grep -v bin | xargs rm -rf \ # Symlink phantom so that we are able to run `phantomjs` && ln -s /phantomjs/phantomjs-2.0.0/bin/phantomjs /usr/local/share/phantomjs \ && ln -s /phantomjs/phantomjs-2.0.0/bin/phantomjs /usr/local/bin/phantomjs \ && ln -s /phantomjs/phantomjs-2.0.0/bin/phantomjs /usr/bin/phantomjs \ # Removing build dependencies, clean temporary files && apt-get purge -yqq ${buildDependencies} \ && apt-get autoremove -yqq \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ # Checking if phantom works && phantomjs -v CMD \ echo "phantomjs binary is located at /phantomjs/phantomjs-2.0.0/bin/phantomjs"\ && echo "just run 'phantomjs' (version `phantomjs -v`)"
Source Repository