1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-30 18:51:24 +00:00
dockerfiles/phantomjs/Dockerfile

28 lines
949 B
Docker
Raw Normal View History

2015-05-25 11:27:47 +00:00
#
# Dockerfile for building PhantomJS
#
FROM ubuntu:14.04
MAINTAINER kev <noreply@datageek.info>
RUN apt-get update \
2015-05-25 11:39:33 +00:00
&& apt-get install -y git build-essential g++ flex bison gperf ruby perl \
2015-05-25 11:27:47 +00:00
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \
2015-05-25 11:42:06 +00:00
libpng-dev libjpeg-dev python \
&& git clone git://github.com/ariya/phantomjs.git \
2015-05-25 11:27:47 +00:00
&& cd phantomjs \
&& git checkout 2.0 \
2015-05-25 15:32:00 +00:00
&& echo y | ./build.sh 2>/dev/null 1>&2 \
2015-05-25 23:57:35 +00:00
&& install -v -s -m 755 bin/phantomjs /usr/local/bin/ \
2015-05-25 23:51:30 +00:00
&& cd .. \
&& rm -rf phantomjs \
2015-05-25 14:12:32 +00: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 \
2015-05-26 13:15:23 +00:00
&& apt-get install -y libfontconfig1 libicu52 libjpeg8 \
2015-05-25 14:12:32 +00:00
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
2015-05-25 23:52:47 +00:00
CMD ["/usr/local/bin/phantomjs"]