Last active
August 29, 2015 14:13
-
-
Save md5/f83bc66b48981d6db7a0 to your computer and use it in GitHub Desktop.
Cache-Control test
This file contains 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
#!/usr/bin/env ruby | |
require 'sinatra' | |
set bind: '0.0.0.0' | |
get '/' do | |
response['Cache-Control'] = 'public' | |
'Hello' | |
end |
This file contains 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 ruby | |
RUN mkdir /app | |
RUN gem install sinatra | |
WORKDIR /app | |
ADD app.rb /app/ | |
CMD ["ruby", "app.rb"] | |
EXPOSE 4567 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment