Skip to content

Commit d2cdc8e

Browse files
author
Jacob Middag
committed
Use prebuild docker container for PhantomJS
1 parent b03778c commit d2cdc8e

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

config/Dockerfile-phantomjs

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
1-
FROM ubuntu:14.04
1+
FROM servebox/phantomjs:latest
22

33
EXPOSE 8910
44

5-
ENV PHANTOM_JS_VERSION 2.0.0
6-
7-
RUN apt-get update
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
15-
16-
17-
CMD ["/phantomjs/bin/phantomjs", "--webdriver=8910"]
5+
CMD ["phantomjs", "--webdriver=8910"]

0 commit comments

Comments
 (0)