forked from servebox/docker-phantomjs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
38 lines (33 loc) · 977 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu:trusty
MAINTAINER ServeBox <[email protected]>
RUN apt-get update -qq && apt-get upgrade -y && apt-get install -y \
git \
build-essential \
g++ \
flex \
bison \
gperf \
ruby \
perl \
libsqlite3-dev \
libfontconfig1-dev \
libicu-dev \
libfreetype6 \
libssl-dev \
libpng-dev \
libjpeg-dev \
libqt5webkit5-dev
ENV PHANTOM_JS_TAG 2.0.0
RUN git clone https://github.com/ariya/phantomjs.git /tmp/phantomjs && \
cd /tmp/phantomjs && git checkout $PHANTOM_JS_TAG && \
./build.sh --confirm && mv bin/phantomjs /usr/local/bin && \
rm -rf /tmp/phantomjs
RUN apt-get update && \
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev wget && \
cd /tmp && \
wget https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.3.tar.gz && \
tar -xvzf ruby-2.2.3.tar.gz && \
cd ruby-2.2.3/ && \
./configure --prefix=/usr/local && \
make && \
make install