hello world app
This commit is contained in:
commit
588820ccec
|
@ -0,0 +1,9 @@
|
|||
FROM ruby:2.5 as build-and-run
|
||||
|
||||
WORKDIR /app
|
||||
EXPOSE 8080
|
||||
|
||||
COPY . /app
|
||||
RUN bundle install
|
||||
|
||||
CMD ["bundle", "exec", "rackup", "-p", "8080", "-o", "0.0.0.0", "-s", "puma"]
|
|
@ -0,0 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
||||
|
||||
gem "puma"
|
||||
gem "sinatra"
|
|
@ -0,0 +1,24 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
mustermann (1.0.3)
|
||||
puma (3.12.0)
|
||||
rack (2.0.6)
|
||||
rack-protection (2.0.4)
|
||||
rack
|
||||
sinatra (2.0.4)
|
||||
mustermann (~> 1.0)
|
||||
rack (~> 2.0)
|
||||
rack-protection (= 2.0.4)
|
||||
tilt (~> 2.0)
|
||||
tilt (2.0.8)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
puma
|
||||
sinatra
|
||||
|
||||
BUNDLED WITH
|
||||
1.16.3
|
|
@ -0,0 +1,7 @@
|
|||
require 'sinatra/base'
|
||||
|
||||
class App < Sinatra::Base
|
||||
get "/" do
|
||||
"hello world"
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue