forked from bbc/wraith
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (15 loc) · 815 Bytes
/
Dockerfile
File metadata and controls
18 lines (15 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM ruby:2.1.2
RUN echo "deb http://ftp.us.debian.org/debian jessie main contrib non-free" | tee -a /etc/apt/sources.list \
&& echo "deb http://security.debian.org/ jessie/updates contrib non-free" | tee -a /etc/apt/sources.list \
&& apt-get update \
&& echo "export phantomjs=/usr/bin/phantomjs" > .bashrc \
&& apt-get install -y libfreetype6 libfontconfig1 nodejs npm libnss3-dev libgconf-2-4 ttf-freefont ttf-mscorefonts-installer ttf-bitstream-vera ttf-dejavu ttf-liberation imagemagick bash \
&& ln -s /usr/bin/nodejs /usr/bin/node \
&& npm install npm \
&& npm install -g phantomjs@2.1.7 casperjs@1.1.1
ADD . /tmp/build
RUN cd /tmp/build \
&& gem build wraith.gemspec \
&& gem install ./wraith-*.gem --no-rdoc --no-ri \
&& rm -rf /tmp/build
ENTRYPOINT [ "wraith" ]