-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Thiru Njuguna
committed
Jan 23, 2019
1 parent
fcf4e83
commit 97aba11
Showing
1 changed file
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
FROM ruby AS base | ||
FROM ruby:2.5.3 AS base | ||
|
||
WORKDIR /usr/src/app | ||
|
||
RUN gem install bundler | ||
|
||
COPY Gemfile /usr/src/app/ | ||
|
||
FROM base AS development | ||
|
||
RUN bundle install -j5 --without staging production | ||
|
||
COPY . /usr/src/app | ||
|
||
FROM base AS release | ||
|
||
RUN bundle install -j5 --without development test | ||
|
||
RUN chmod 755 ./usr/src/app | ||
|
||
RUN chmod 755 ./usr/src/app/bin/setup | ||
|
||
COPY . /usr/src/app | ||
|
||
CMD puma |