Skip to content

Instantly share code, notes, and snippets.

@nzoschke
Created June 12, 2016 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nzoschke/6376b60da119da53b2459be288d25df1 to your computer and use it in GitHub Desktop.
Save nzoschke/6376b60da119da53b2459be288d25df1 to your computer and use it in GitHub Desktop.
Modern Ruby / Rails Dockerfile
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