-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
40 lines (33 loc) · 901 Bytes
/
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
FROM gliderlabs/alpine:3.1
MAINTAINER CenturyLink Labs <[email protected]>
ENV RUBY_MAJOR 2.2
ENV RUBY_VERSION 2.2.0
RUN echo 'gem: --no-document' >> /.gemrc
ADD . /tmp
WORKDIR /tmp
RUN apk-install curl \
libffi \
build-base \
openssl-dev \
gdbm \
ncurses \
readline \
yaml \
sqlite-dev \
ca-certificates \
tzdata \
make \
ruby-bundler \
ruby-dev \
&& gem install --no-document bundler \
&& bundle install --without development \
&& apk del build-base make ncurses
CMD [ "irb" ]
# These instructions are only executed when this image is used as the base for
# another image. They will be executed immediately after the FROM instruction
# in the child Dockerfile.
ONBUILD ADD . /usr/src/app
ONBUILD WORKDIR /usr/src/app
ONBUILD ENV RAILS_ENV production
ONBUILD RUN bundle install --without development test
ONBUILD EXPOSE 3000