From d8e6aaedf1ad95f7b1f8992207f475da9cd23202 Mon Sep 17 00:00:00 2001 From: Punit Shah Date: Fri, 20 May 2016 16:24:52 +0100 Subject: [PATCH] updated dockerfile to install the new phantomjs and casperjs --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 46b3d5fc..bc5a4ee5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,11 +3,11 @@ FROM ruby:2.1.2 # some of ruby's build scripts are written in ruby # we purge this later to make sure our final image uses what we just built RUN apt-get update -RUN curl -o phantomjs.tar.gz -L https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 -RUN tar -xvf phantomjs.tar.gz -RUN mv phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/bin RUN echo "export phantomjs=/usr/bin/phantomjs" > .bashrc -RUN apt-get install -y libfreetype6 libfontconfig1 +RUN apt-get install -y libfreetype6 libfontconfig1 nodejs npm +RUN ln -s /usr/bin/nodejs /usr/bin/node +RUN npm install npm +RUN npm install -g phantomjs@2.1.7 casperjs@1.1.1 RUN gem install wraith --no-rdoc --no-ri RUN gem install aws-sdk --no-rdoc --no-ri