2015-05-25 13:27:47 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for building PhantomJS
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM ubuntu:14.04
|
|
|
|
MAINTAINER kev <noreply@datageek.info>
|
|
|
|
|
|
|
|
RUN apt-get update \
|
2015-05-25 13:39:33 +02:00
|
|
|
&& apt-get install -y git build-essential g++ flex bison gperf ruby perl \
|
2015-05-25 13:27:47 +02:00
|
|
|
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \
|
2015-05-25 13:42:06 +02:00
|
|
|
libpng-dev libjpeg-dev python \
|
|
|
|
&& git clone git://github.com/ariya/phantomjs.git \
|
2015-05-25 13:27:47 +02:00
|
|
|
&& cd phantomjs \
|
|
|
|
&& git checkout 2.0 \
|
2015-05-25 16:12:32 +02:00
|
|
|
&& echo y | ./build.sh > /dev/null \
|
|
|
|
&& make install \
|
|
|
|
&& cd .. \
|
|
|
|
&& rm -rf phantomjs \
|
|
|
|
&& apt-get remove -y git build-essential g++ flex bison gperf ruby perl \
|
|
|
|
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \
|
|
|
|
libpng-dev libjpeg-dev python \
|
|
|
|
&& apt-get autoremove -y \
|
|
|
|
&& apt-get clean -y \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|