forked from holin/docker-prerender
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (24 loc) · 888 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
FROM node:latest
MAINTAINER Joshua Gardner <[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 \
build-essential g++ flex bison gperf ruby perl \
libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \
libpng-dev libjpeg-dev python libx11-dev libxext-dev \
ca-certificates
RUN mkdir /src && \
cd /src && \
git clone --recurse-submodules git://github.com/ariya/phantomjs.git && \
cd phantomjs && \
./build.py && \
install -m 755 -o root -g root -t /usr/local/bin bin/phantomjs && \
cd / && \
rm -rf /src/phantomjs
RUN mkdir /data
ADD ./package.json /data/package.json
RUN cd /data && npm install
ADD . /data/
CMD ["node", "/data/server.js"]
EXPOSE 3000