Skip to content

Commit

Permalink
phantomjs version update in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp committed May 12, 2016
1 parent f2b235f commit 4f51a99
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,20 @@ RUN chmod a+wx /opt/files/audio_logo_2.mp3
RUN chmod a+wx /opt/files/audio_logo_3.mp3
RUN chmod a+wx /opt/files/audio_logo_4.mp3
RUN chmod a+wx /opt/files/audio_logo_5.mp3

# Install PhantomJS
RUN set -e
RUN apt-get -y install libfreetype6 libfreetype6-dev fontconfig

ARCH=x86_64
PHANTOMJS_VERSION=2.1.1
PHANTOMJS_TAR_FILE=phantomjs-${PHANTOMJS_VERSION}-linux-${ARCH}.tar.bz2

RUN cd /usr/local/share/
RUN curl -L -O https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-${PHANTOMJS_VERSION}-linux-${ARCH}.tar.bz2
RUN tar xjf $PHANTOMJS_TAR_FILE
RUN ln -s -f /usr/local/share/phantomjs-${PHANTOMJS_VERSION}-linux-${ARCH}/bin/phantomjs /usr/local/share/phantomjs
RUN ln -s -f /usr/local/share/phantomjs-${PHANTOMJS_VERSION}-linux-${ARCH}/bin/phantomjs /usr/local/bin/phantomjs
RUN ln -s -f /usr/local/share/phantomjs-${PHANTOMJS_VERSION}-linux-${ARCH}/bin/phantomjs /usr/bin/phantomjs

RUN rm $PHANTOMJS_TAR_FILE

0 comments on commit 4f51a99

Please sign in to comment.