Update Dockerfile to install phantomjs from a different location

This commit is contained in:
Lars Henrik Mai 2016-04-06 21:55:36 +02:00
parent d2da4bece9
commit 4e121d98a9

View file

@ -1,14 +1,13 @@
FROM ruby:2.2
RUN apt-get update && apt-get install -y build-essential zlib1g-dev libsqlite3-dev nodejs nodejs-legacy
RUN apt-get update && apt-get install -y build-essential zlib1g-dev libsqlite3-dev nodejs nodejs-legacy npm
RUN npm install phantomjs-prebuilt
RUN ln -sf /node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs /usr/local/bin/
RUN mkdir -p /app
WORKDIR /tmp
RUN wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
RUN tar xvvjf phantomjs-2.1.1-linux-x86_64.tar.bz2
RUN ln -sf /tmp/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/
COPY Gemfile Gemfile
COPY Gemfile.lock Gemfile.lock
RUN bundle install