forked from vteams/open-source-billing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (45 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
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
FROM ruby:2.3.7
# App Utils Installation
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
# Dependencies for Ruby
RUN apt-get update -yqq \
&& apt-get install -yqq \
wget \
gdebi \
git \
git-core \
curl \
zlib1g-dev \
build-essential \
libssl-dev \
libreadline-dev \
libyaml-dev \
libsqlite3-dev \
sqlite3 \
libxml2 \
libxml2-dev \
libxslt1-dev \
libcurl4-openssl-dev \
software-properties-common \
libffi-dev \
libncurses5-dev \
automake \
libtool \
bison \
imagemagick \
libmagickcore-dev \
libmagickwand-dev \
libicu-dev \
&& apt-get -q clean \
&& rm -rf /var/lib/apt/lists
RUN add-apt-repository ppa:ondrej/php
# PDF configurations
RUN wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
RUN tar -xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
RUN cp wkhtmltox/bin/* /usr/local/bin
RUN rm -rf wkhtmltox*
WORKDIR /usr/src/osbapp
ENV RAILS_ENV=production
COPY Gemfile .
COPY . .
RUN bundle install