Created
October 27, 2017 06:18
-
-
Save tom-monaco/a8cb252fc2b818f717d3e5baf3c04062 to your computer and use it in GitHub Desktop.
Dockerfile for Ancient Rails App
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.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