Skip to content

Instantly share code, notes, and snippets.

@chorn
Created June 20, 2016 18:39
Show Gist options
  • Save chorn/6998ceb23354d5ab417773a945ac8506 to your computer and use it in GitHub Desktop.
Save chorn/6998ceb23354d5ab417773a945ac8506 to your computer and use it in GitHub Desktop.
FROM ruby:2.3.1
MAINTAINER Chris Horn <chorn@chorn.com>
ENV DEBIAN_FRONTEND noninteractive
ENV DEBCONF_NONINTERACTIVE_SEEN true
RUN apt-get update -yqq
RUN apt-get upgrade -yqq
RUN apt-get install -yqq sudo less net-tools imagemagick
RUN rm -rf /var/lib/apt/lists/*
RUN gem install bundler --no-ri --no-rdoc
WORKDIR /app
ADD Gemfile /app/Gemfile
ADD Gemfile.lock /app/Gemfile.lock
RUN bundle install
ADD . /app
ENV RAILS_ENV development
CMD ["bundle", "exec", "rackup"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment