Skip to content

Instantly share code, notes, and snippets.

@ehowe
Created April 25, 2017 19:17
Show Gist options
  • Save ehowe/cabe079f28e69a5cb1faa9b2bb343409 to your computer and use it in GitHub Desktop.
Save ehowe/cabe079f28e69a5cb1faa9b2bb343409 to your computer and use it in GitHub Desktop.
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