forked from YACS-RCOS/yacs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 710 Bytes
/
Dockerfile
File metadata and controls
25 lines (18 loc) · 710 Bytes
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
FROM ruby:2.2.3
MAINTAINER Richie Young <richiejoeyoung@gmail.com>
RUN apt-get update && apt-get install -qq -y build-essential nodejs wget --fix-missing --no-install-recommends
ENV PHANTOMJS_VERSION 2.1.14
RUN \
apt-get install -y vim git wget libfreetype6 libfontconfig && \
wget -q -O /tmp/phantomjs-$PHANTOMJS_VERSION http://rpi.edu/~robinm8/phantomjs && \
mv /tmp/phantomjs-$PHANTOMJS_VERSION /usr/bin/phantomjs && \
chmod +x /usr/bin/phantomjs
ENV INSTALL_PATH /usr/src/app/
RUN mkdir -p $INSTALL_PATH
RUN mkdir -p /var/run/puma
WORKDIR $INSTALL_PATH
COPY Gemfile Gemfile.lock $INSTALL_PATH
RUN bundle install
COPY . $INSTALL_PATH
RUN mkdir -p /etc/puma/ssl
COPY nginx/ssl/ /etc/puma/ssl/