Skip to content

Commit b03778c

Browse files
author
Jacob Middag
committed
Update phantomjs docker file
1 parent bfba2a0 commit b03778c

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

config/Dockerfile-phantomjs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ FROM ubuntu:14.04
22

33
EXPOSE 8910
44

5-
ENV PHANTOM_JS_VERSION 1.9.7-linux-x86_64
5+
ENV PHANTOM_JS_VERSION 2.0.0
66

77
RUN apt-get update
8-
RUN apt-get install -yqq curl libfreetype6 libfontconfig
9-
# make ruby python git g++ flex bison gperf perl \
10-
# libfontconfig1-dev libicu-dev libfreetype6 \
11-
# libssl-dev libpng-dev libjpeg-dev
12-
# RUN git clone git://github.com/ariya/phantomjs.git && cd phantomjs && ./build.sh && send "y\n"
8+
RUN apt-get install -yqq build-essential g++ flex bison gperf ruby perl \
9+
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \
10+
libpng-dev libjpeg-dev python libx11-dev libxext-dev \
11+
curl
12+
RUN curl -sSL https://github.com/ariya/phantomjs/archive/$PHANTOM_JS_VERSION.tar.gz | tar xz
13+
RUN ln -sf phantomjs-$PHANTOM_JS_VERSION /phantomjs
14+
RUN cd /phantomjs && ./build.sh --confirm
1315

14-
RUN curl -sSL https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$PHANTOM_JS_VERSION.tar.bz2 | tar xjC /
15-
RUN ln -s phantomjs-$PHANTOM_JS_VERSION /phantomjs
1616

1717
CMD ["/phantomjs/bin/phantomjs", "--webdriver=8910"]

0 commit comments

Comments
 (0)