Last active
August 29, 2015 14:05
-
-
Save Gurpartap/bb18bb4fe153893f9167 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'bundler/setup' | |
require 'sinatra' | |
module Sample | |
class ApplicationController < Sinatra::Base | |
get '/' do | |
return 'Hello World' | |
end | |
end | |
end | |
run Rack::URLMap.new('/' => Sample::ApplicationController) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM gurpartap/ruby-build:2.1.2 | |
RUN mkdir /app | |
WORKDIR /app | |
ADD Gemfile /app/Gemfile | |
RUN bundle install | |
ADD . /app | |
EXPOSE 3000 | |
CMD bundle exec thin start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
group :development do | |
end | |
gem 'rake' | |
gem 'bundler' | |
gem 'thin' | |
gem 'sinatra' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment