Skip to content

Commit

Permalink
Add Gemfile support
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis <[email protected]>
  • Loading branch information
alexellis committed Aug 10, 2017
1 parent 8550f19 commit bd8f300
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions sample/ruby-echo/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

# gem "rspec"
7 changes: 4 additions & 3 deletions template/ruby/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ RUN apk --no-cache add curl \

WORKDIR /root/

COPY Gemfile .
COPY index.rb .
COPY function function
RUN bundle install

WORKDIR /root/function/
RUN bundle install

WORKDIR /root/

ENV fprocess="ruby index.rb"

HEALTHCHECK --interval=1s CMD [ -e /tmp/.lock ] || exit 1
HEALTHCHECK --interval=2s CMD [ -e /tmp/.lock ] || exit 1

CMD ["fwatchdog"]
2 changes: 2 additions & 0 deletions template/ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source 'https://rubygems.org'

2 changes: 2 additions & 0 deletions template/ruby/function/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source 'https://rubygems.org'

0 comments on commit bd8f300

Please sign in to comment.