Created
June 12, 2016 20:08
-
-
Save nzoschke/6376b60da119da53b2459be288d25df1 to your computer and use it in GitHub Desktop.
Modern Ruby / Rails Dockerfile
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 ubuntu:16.04 | |
RUN apt-get update | |
RUN apt-get -yy install build-essential ruby-dev | |
RUN apt-get -yy install libmysqld-dev libpq-dev libsqlite3-dev | |
RUN apt-get -yy install nginx nodejs | |
WORKDIR /app | |
ENV PORT 5000 | |
RUN gem install bundler | |
COPY bin/web /app/bin/web | |
COPY conf/convox.rb /app/config/initializers/convox.rb | |
COPY conf/nginx.conf /etc/nginx/nginx.conf | |
CMD ["bin/web"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment