Skip to content

Commit

Permalink
lock docker file to ruby 2.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiru Njuguna committed Jan 23, 2019
1 parent fcf4e83 commit 97aba11
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/natra/generators/app/templates/Dockerfile
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

0 comments on commit 97aba11

Please sign in to comment.