Skip to content

Instantly share code, notes, and snippets.

@tom-monaco
Created October 27, 2017 06:18
Show Gist options
  • Save tom-monaco/a8cb252fc2b818f717d3e5baf3c04062 to your computer and use it in GitHub Desktop.
Save tom-monaco/a8cb252fc2b818f717d3e5baf3c04062 to your computer and use it in GitHub Desktop.
Dockerfile for Ancient Rails App
FROM ruby:2.3.3
EXPOSE 3000
WORKDIR /app_root
COPY Gemfile /app_root
COPY Gemfile.lock /app_root
RUN bundle install
ENV RAILS_ENV=production
ENV RALIS_SERVE_STATIC_FILES=true
COPY . /app_root
RUN rake assets:precompile
RUN rake db:migrate
RUN rake db:seed
VOLUME /app_root/db
CMD rails server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment