-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (46 loc) · 1.17 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM node:latest
MAINTAINER Josh Owens "[email protected]"
RUN echo deb http://ftp.debian.org/debian/ jessie main contrib non-free > /etc/apt/source.list
RUN apt-get update -y && apt-get install -y \
python2.7 python-pip \
libfreetype6 libfontconfig
RUN mkdir /data
ADD ./package.json /data/package.json
RUN cd /data && npm install
ADD . /data/
ENV TERM=xterm-color
RUN apt-get update; \
apt-get install -y \
bison \
build-essential \
curl \
flex \
g++ \
git \
gperf \
sqlite3 \
libsqlite3-dev \
fontconfig \
libfontconfig1 \
libfontconfig1-dev \
libfreetype6 \
libfreetype6-dev \
libicu-dev \
libjpeg-dev \
libpng-dev \
libssl-dev \
libqt5webkit5-dev \
ruby \
perl \
unzip \
wget
RUN mkdir -p /usr/src; \
cd /usr/src; \
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.0.0-source.zip; \
unzip phantomjs-2.0.0-source.zip; \
rm phantomjs-2.0.0-source.zip; \
cd phantomjs-2.0.0; \
./build.sh --confirm
RUN cp /usr/src/phantomjs-2.0.0/bin/phantomjs /usr/local/bin/phantomjs
ENV PHANTOMJS_PATH /usr/local/bin/phantomjs
CMD node /data/server.js