Skip to content

Commit

Permalink
Reorganize Dockerfile
Browse files Browse the repository at this point in the history
This reorganized the Dockerfile to bundle all necessary gems separately
to speed up Docker builds.
  • Loading branch information
dennmart committed Dec 28, 2016
1 parent 3e89a9b commit d8968f1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
FROM ruby:2.3.3
ADD . /app
RUN apt-get update && apt-get -y install cmake

WORKDIR /tmp
ADD Gemfile .
ADD Gemfile.lock .
RUN bundle install

WORKDIR /app
RUN apt-get update && apt-get -y install cmake && bundle install
CMD rackup -o 0.0.0.0
ADD . /app
CMD ["rackup", "-o", "0.0.0.0"]

0 comments on commit d8968f1

Please sign in to comment.