Commit ae076954 authored by Pawel Chojnacki's avatar Pawel Chojnacki

Remove sinatra

parent deac611d
FROM ruby:2.4.0-alpine
ADD ./ /app/
WORKDIR /app
RUN bundle install
ENV PORT 5000
EXPOSE 5000
CMD ruby ./server.rb
\ No newline at end of file
source 'https://rubygems.org'
gem 'sinatra'
\ No newline at end of file
require 'sinatra'
set :bind, '0.0.0.0'
set :port, 5000
set :logging, true
get '/' do
'Hello World!'
require 'webrick'
server = WEBrick::HTTPServer.new :Port => 5000
#The following proc is used to customize the server operations
server.mount_proc '/' do |request, response|
response.body = 'Hello, world!'
end
server.start
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment