Created
December 31, 2015 09:41
-
-
Save rstarmer/96f3a7a8c13fdbed2b33 to your computer and use it in GitHub Desktop.
A dockerfile to create a passenger ruby application environment and install our application from github
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
# See https://github.com/phusion/passenger-docker/blob/master/Changelog.md for | |
# a list of version numbers. | |
FROM phusion/passenger-ruby22:0.9.18 | |
# Set correct environment variables. | |
ENV HOME /root | |
# Use baseimage-docker's init process. | |
CMD ["/sbin/my_init"] | |
RUN rm /etc/nginx/sites-enabled/default | |
ADD ruby-hw.conf /etc/nginx/sites-enabled/ruby-hw.conf | |
RUN sudo -u app -H git clone https://github.com/rstarmer/ruby_hw -b docker /home/app/ruby_hw | |
WORKDIR /home/app/ruby_hw | |
RUN sudo -u app -H bundle install --path vendor/bundle | |
RUN rm -f /etc/service/nginx/down | |
# Clean up APT when done. | |
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment