Created
April 25, 2017 19:17
-
-
Save ehowe/cabe079f28e69a5cb1faa9b2bb343409 to your computer and use it in GitHub Desktop.
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 seapy/rails-nginx-unicorn | |
RUN apt-get install supervisor -y | |
ENV INSTALL_PATH /app | |
RUN mkdir -p $INSTALL_PATH | |
WORKDIR $INSTALL_PATH | |
COPY Gemfile Gemfile | |
RUN gem update -i /usr/local/lib/ruby/gems/2.3.0 bundler | |
RUN bundle install | |
COPY supervisor/supervisor.conf /etc/supervisor/ | |
COPY supervisor/conf.d/* /etc/supervisor/conf.d/ | |
COPY . . | |
RUN bundle | |
RUN bundle exec rake assets:precompile | |
CMD /usr/bin/supervisord -c /etc/supervisor/supervisor.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment