forked from errbit/errbit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (26 loc) · 723 Bytes
/
Dockerfile
File metadata and controls
30 lines (26 loc) · 723 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
26
27
28
29
30
FROM alpine:3.4
MAINTAINER David Papp <david@ghostmonitor.com>
RUN apk --update add \
build-base ruby-dev libc-dev linux-headers \
libffi-dev zlib-dev \
ca-certificates \
ruby \
ruby-bundler \
ruby-io-console \
ruby-bigdecimal \
curl \
bash \
nodejs \
tzdata \
ruby-dev && \
rm -fr /usr/share/ri
COPY . /app
RUN apk --update add --virtual build_deps \
build-base ruby-dev libc-dev linux-headers \
openssl-dev postgresql-dev libxml2-dev libxslt-dev
RUN cd app && \
bundle config build.nokogiri --use-system-libraries && \
bundle install --without test development no_docker && \
bundle exec rake assets:precompile
WORKDIR /app
CMD ["bundle","exec","puma","-C","config/puma.default.rb"]