Skip to content

Commit

Permalink
First Pass
Browse files Browse the repository at this point in the history
  • Loading branch information
idjohnson committed Jul 21, 2023
1 parent 2bb51f9 commit f899da3
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
@@ -0,0 +1,15 @@
FROM ruby:latest

# throw errors if Gemfile has been modified
RUN bundle config --global frozen 1

WORKDIR /usr/src/app/

COPY Gemfile Gemfile.lock ./
RUN bundle install

ADD . /usr/src/app/

EXPOSE 4000

CMD ["ruby", "/usr/src/app/helloworld.rb"]
8 changes: 8 additions & 0 deletions Gemfile
@@ -0,0 +1,8 @@
# frozen_string_literal: true

source "https://rubygems.org"

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }

# gem "rails"
gem "sinatra"
24 changes: 24 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,24 @@
GEM
remote: https://rubygems.org/
specs:
mustermann (3.0.0)
ruby2_keywords (~> 0.0.1)
rack (2.2.7)
rack-protection (3.0.6)
rack
ruby2_keywords (0.0.5)
sinatra (3.0.6)
mustermann (~> 3.0)
rack (~> 2.2, >= 2.2.4)
rack-protection (= 3.0.6)
tilt (~> 2.0)
tilt (2.2.0)

PLATFORMS
x86_64-linux

DEPENDENCIES
sinatra

BUNDLED WITH
2.2.26
8 changes: 8 additions & 0 deletions helloworld.rb
@@ -0,0 +1,8 @@
require 'sinatra'

set :port, 4000
set :bind, '0.0.0.0'

get '/' do
'Hello World!'
end

0 comments on commit f899da3

Please sign in to comment.