1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-16 11:37:32 +02:00
dockerfiles/phantomjs/Dockerfile
2016-01-26 22:25:26 +08:00

52 lines
1.8 KiB
Docker

#
# Dockerfile for building PhantomJS
#
FROM ubuntu:14.04
MAINTAINER kev <noreply@datageek.info>
RUN set -xe \
&& apt-get update \
&& apt-get install -y bison \
build-essential \
flex \
g++ \
git \
gperf \
libfontconfig1 \
libfontconfig1-dev \
libicu52 \
libicu-dev \
libjpeg8 \
libjpeg-dev \
libpng-dev \
libsqlite3-dev \
libssl-dev \
perl \
python \
ruby \
&& git clone -b 2.1 --depth 1 --single-branch git://github.com/ariya/phantomjs.git \
&& cd phantomjs \
&& echo y | ./build.py 2>/dev/null 1>&2 \
&& install -v -s -m 755 bin/phantomjs /usr/local/bin/ \
&& cd .. \
&& rm -rf phantomjs \
&& apt-get purge -y --auto-remove bison \
build-essential \
flex \
g++ \
git \
gperf \
libfontconfig1-dev \
libicu-dev \
libjpeg-dev \
libpng-dev \
libsqlite3-dev \
libssl-dev \
perl \
python \
ruby \
&& rm -rf /var/lib/apt/lists/*
CMD ["/usr/local/bin/phantomjs"]