Created
March 25, 2014 17:05
-
-
Save kirs/9766441 to your computer and use it in GitHub Desktop.
my rails Dockerfile
This file contains 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 kirs/chruby | |
ENV DEBIAN_FRONTEND noninteractive | |
EXPOSE 3000 | |
RUN apt-get install -y git-core libmysqlclient-dev python-software-properties | |
RUN add-apt-repository ppa:chris-lea/node.js | |
RUN apt-get install -y nodejs | |
ADD ./myapp /rails | |
ADD ./database.yml /rails/config/database.yml | |
WORKDIR /rails | |
RUN /bin/bash -l -c "bundle install --path vendor/bundle" | |
RUN /bin/bash -l -c "RAILS_ENV=production bundle exec rake assets:precompile" | |
ENTRYPOINT /bin/bash -l -c "RAILS_ENV=production bundle exec puma -p 3000" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment