Last active
April 19, 2018 21:55
-
-
Save Juice10/9945b9aa07d1f1760c4d7730e98802f5 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
# image with ruby installed | |
FROM ruby:2.5 | |
# install Sinatra, sinatra helpers and thin, our fast webserver | |
RUN gem install sinatra && gem install sinatra-contrib && gem install thin | |
# load our code into the container | |
ADD action.rb / | |
# expose port 8080 | |
EXPOSE 8080 | |
# run our ruby script | |
CMD [ "ruby", "/action.rb" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment