This commit is contained in:
Luiz F Picolo 2021-10-05 10:22:47 -04:00
parent e971aaa9a0
commit a99458f02b
3 changed files with 42 additions and 31 deletions

View File

@ -1,9 +1,16 @@
FROM ruby:2.7.1
RUN apt-get update && apt-get install -y
RUN apt-get install -y nodejs sqlite3
RUN apt-get install npm -y
WORKDIR /code
COPY . /code
RUN cd public && npm install
RUN cd ..
RUN bundle install
EXPOSE 4567
CMD ["bundle", "exec", "rackup", "--host", "0.0.0.0", "-p", "4567"]
CMD ["bundle", "exec", "puma", "-p", "4567"]

View File

@ -11,4 +11,5 @@ gem 'sinatra-activerecord'
gem 'chartkick'
gem 'rerun'
gem 'sqlite3'
gem 'rake'
gem 'rake'
gem 'puma'

View File

@ -1,60 +1,62 @@
GEM
remote: https://rubygems.org/
specs:
activemodel (6.0.3.5)
activesupport (= 6.0.3.5)
activerecord (6.0.3.5)
activemodel (= 6.0.3.5)
activesupport (= 6.0.3.5)
activesupport (6.0.3.5)
activemodel (6.1.4.1)
activesupport (= 6.1.4.1)
activerecord (6.1.4.1)
activemodel (= 6.1.4.1)
activesupport (= 6.1.4.1)
activesupport (6.1.4.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
chartkick (3.4.0)
concurrent-ruby (1.1.8)
ffi (1.12.2)
httparty (0.18.0)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
chartkick (4.0.5)
concurrent-ruby (1.1.9)
ffi (1.15.4)
httparty (0.20.0)
mime-types (~> 3.0)
multi_xml (>= 0.5.2)
i18n (1.8.9)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
listen (3.2.1)
listen (3.7.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mime-types (3.3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2020.0512)
mime-types-data (3.2021.0901)
minitest (5.14.4)
multi_xml (0.6.0)
mustermann (1.1.1)
ruby2_keywords (~> 0.0.1)
nio4r (2.5.8)
puma (5.5.0)
nio4r (~> 2.0)
rack (2.2.3)
rack-protection (2.0.8.1)
rack-protection (2.1.0)
rack
rake (13.0.1)
rb-fsevent (0.10.4)
rake (13.0.6)
rb-fsevent (0.11.0)
rb-inotify (0.10.1)
ffi (~> 1.0)
rerun (0.13.0)
rerun (0.13.1)
listen (~> 3.0)
ruby2_keywords (0.0.2)
sinatra (2.0.8.1)
ruby2_keywords (0.0.5)
sinatra (2.1.0)
mustermann (~> 1.0)
rack (~> 2.0)
rack-protection (= 2.0.8.1)
rack (~> 2.2)
rack-protection (= 2.1.0)
tilt (~> 2.0)
sinatra-activerecord (2.0.18)
sinatra-activerecord (2.0.23)
activerecord (>= 4.1)
sinatra (>= 1.0)
speedtest (0.2.3)
httparty (~> 0.13)
sqlite3 (1.4.2)
thread_safe (0.3.6)
tilt (2.0.10)
tzinfo (1.2.9)
thread_safe (~> 0.1)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
zeitwerk (2.4.2)
PLATFORMS
@ -63,6 +65,7 @@ PLATFORMS
DEPENDENCIES
activerecord
chartkick
puma
rake
rerun
sinatra