Skip to content

Instantly share code, notes, and snippets.

@Gurpartap
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gurpartap/bb18bb4fe153893f9167 to your computer and use it in GitHub Desktop.
Save Gurpartap/bb18bb4fe153893f9167 to your computer and use it in GitHub Desktop.
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)
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
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