1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-16 11:37:34 +02:00
dockerfiles/phantomjs/Dockerfile

27 lines
870 B
Docker
Raw Normal View History

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 17:32:00 +02:00
&& echo y | ./build.sh 2>/dev/null 1>&2 \
2015-05-26 01:51:30 +02:00
&& cp bin/phantomjs /usr/local/bin/ \
&& cd .. \
&& rm -rf phantomjs \
2015-05-25 16:12:32 +02:00
&& 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/*
2015-05-26 01:52:47 +02:00
CMD ["/usr/local/bin/phantomjs"]