Created
July 15, 2016 05:02
-
-
Save byronmejia/bf31f09a3ed62e426927826deae81597 to your computer and use it in GitHub Desktop.
Sinatra Docker File
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
| FROM ruby:2.3.0 | |
| RUN apt-get update -qq | |
| RUN apt-get install -y build-essential libpq-dev | |
| COPY Gemfile* /tmp/ | |
| WORKDIR /tmp | |
| RUN bundle install | |
| ENV app /app | |
| RUN mkdir $app | |
| WORKDIR $app | |
| ADD . $app | |
| EXPOSE 8080 | |
| CMD bundle exec rackup -p 8080 --host 0.0.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment