Skip to content

Instantly share code, notes, and snippets.

@kevinrobinson
Created November 13, 2015 22:55
Show Gist options
  • Save kevinrobinson/b4b583a014f12dcbb6ae to your computer and use it in GitHub Desktop.
Save kevinrobinson/b4b583a014f12dcbb6ae to your computer and use it in GitHub Desktop.
FROM ruby:2.2
# see update.sh for why all "apt-get install"s have to stay as one long line
RUN apt-get update && apt-get install -y nodejs --no-install-recommends && rm -rf /var/lib/apt/lists/*
# see http://guides.rubyonrails.org/command_line.html#rails-dbconsole
RUN apt-get update && apt-get install -y mysql-client postgresql-client sqlite3 --no-install-recommends && rm -rf /var/lib/apt/lists/*
ENV RAILS_VERSION 4.2.5
RUN gem install rails --version "$RAILS_VERSION"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment