Add parser gemfile

This commit is contained in:
IamTheFij 2018-02-12 05:43:53 +00:00
parent 153293b1e5
commit 194afe8579
3 changed files with 51 additions and 6 deletions

View File

@ -1,14 +1,14 @@
FROM ruby:2.5.0 FROM ruby:2.5.0
# TODO: Move to Gemfile
RUN gem install tracking_number -v 1.0.3
RUN gem install sinatra -v 2.0
EXPOSE 3000
RUN mkdir -p /src RUN mkdir -p /src
WORKDIR /src WORKDIR /src
EXPOSE 3000
COPY Gemfile /src/
COPY Gemfile.lock /src/
RUN bundle install
COPY main.rb /src/ COPY main.rb /src/
CMD ruby main.rb CMD ruby main.rb

View File

@ -0,0 +1,5 @@
source 'https://rubygems.org'
ruby '2.5'
gem 'tracking_number', '1.0.3'
gem 'sinatra', '2.0'

View File

@ -0,0 +1,40 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (5.1.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
concurrent-ruby (1.0.5)
i18n (0.9.4)
concurrent-ruby (~> 1.0)
minitest (5.11.3)
mustermann (1.0.1)
rack (2.0.4)
rack-protection (2.0.0)
rack
sinatra (2.0.0)
mustermann (~> 1.0)
rack (~> 2.0)
rack-protection (= 2.0.0)
tilt (~> 2.0)
thread_safe (0.3.6)
tilt (2.0.8)
tracking_number (1.0.3)
activesupport (>= 4.2.5)
tzinfo (1.2.5)
thread_safe (~> 0.1)
PLATFORMS
ruby
DEPENDENCIES
sinatra (= 2.0)
tracking_number (= 1.0.3)
RUBY VERSION
ruby 2.5.0p0
BUNDLED WITH
1.16.1