Skip to content

Instantly share code, notes, and snippets.

@byronmejia
Created July 15, 2016 05:02
Show Gist options
  • Save byronmejia/bf31f09a3ed62e426927826deae81597 to your computer and use it in GitHub Desktop.
Save byronmejia/bf31f09a3ed62e426927826deae81597 to your computer and use it in GitHub Desktop.
Sinatra Docker File
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