forked from acaprojects/couchbase-orm
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
28 lines (19 loc) · 887 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
ARG RUBY_VERSION
FROM ruby:${RUBY_VERSION}
ARG BUNDLE_VERSION
ARG BUNDLE_WITHOUT
ENV LANG C.UTF-8
WORKDIR /srv/app
RUN CODENAME=$(. /etc/os-release; echo ${VERSION_CODENAME}) \
&& echo "deb http://http.debian.net/debian ${CODENAME}-backports main\ndeb-src http://http.debian.net/debian ${CODENAME}-backports main" > /etc/apt/sources.list.d/backports.list \
&& apt-get -q update > /dev/null \
&& apt-get install -y apt-transport-https curl git jq build-essential libssl-dev \
&& apt-get install -yt ${CODENAME}-backports cmake \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN gem install bundler --version ${BUNDLE_VERSION}
COPY Gemfile couchbase-orm.gemspec .git /srv/app/
COPY lib/couchbase-orm/version.rb /srv/app/lib/couchbase-orm/
RUN bundle config set path 'vendor/bundle' \
&& bundle config set without ${BUNDLE_WITHOUT}
COPY . /srv/app/