mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-23 08:03:14 +01:00
Update Dockerfile to install phantomjs from a different location
This commit is contained in:
parent
d2da4bece9
commit
4e121d98a9
1 changed files with 4 additions and 5 deletions
|
@ -1,14 +1,13 @@
|
||||||
FROM ruby:2.2
|
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
|
RUN mkdir -p /app
|
||||||
|
|
||||||
WORKDIR /tmp
|
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 Gemfile
|
||||||
COPY Gemfile.lock Gemfile.lock
|
COPY Gemfile.lock Gemfile.lock
|
||||||
RUN bundle install
|
RUN bundle install
|
||||||
|
|
Loading…
Reference in a new issue