-
Notifications
You must be signed in to change notification settings - Fork 30
/
Dockerfile
23 lines (18 loc) · 1.08 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
FROM ruby:2.4.1
# Debian issue in Docker
# https://superuser.com/a/1423685
RUN printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list
RUN apt-get clean && apt-get update && apt-get install -y build-essential nodejs bash \
chrpath libssl-dev libxft-dev libfreetype6 libfreetype6-dev libfontconfig1 \
postgresql tzdata git sqlite3 libsqlite3-dev default-jre \
g++ qt5-default libqt5webkit5-dev gstreamer1.0-plugins-base \
gstreamer1.0-tools gstreamer1.0-x libfontconfig1-dev && \
gem install mailcatcher --no-ri --no-rdoc
# Install PhantomJS
RUN wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /usr/local/share/ && \
ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
RUN mkdir /app
WORKDIR /app
COPY . /app
CMD /bin/bash docker/start_dev.sh