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 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 WORKDIR /code
COPY . /code COPY . /code
RUN cd public && npm install
RUN cd ..
RUN bundle install RUN bundle install
EXPOSE 4567 EXPOSE 4567
CMD ["bundle", "exec", "rackup", "--host", "0.0.0.0", "-p", "4567"] CMD ["bundle", "exec", "puma", "-p", "4567"]

View File

@ -12,3 +12,4 @@ gem 'chartkick'
gem 'rerun' gem 'rerun'
gem 'sqlite3' gem 'sqlite3'
gem 'rake' gem 'rake'
gem 'puma'

View File

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