Skip to content

Instantly share code, notes, and snippets.

@Juice10
Last active April 19, 2018 21:55
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 Juice10/9945b9aa07d1f1760c4d7730e98802f5 to your computer and use it in GitHub Desktop.
Save Juice10/9945b9aa07d1f1760c4d7730e98802f5 to your computer and use it in GitHub Desktop.
# 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