From 854c8a85131f3222e7d97a6fe7321d0d993a7f15 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Fri, 26 Feb 2016 10:11:37 -0800 Subject: [PATCH] Officially deprecate "rails" Given what it is (just a framework), and looking through https://github.com/search?l=dockerfile&q=%22FROM+rails%22&type=Code, I think it's time we finally cut the cord. --- rails/deprecated.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 rails/deprecated.md diff --git a/rails/deprecated.md b/rails/deprecated.md new file mode 100644 index 000000000000..203c68ac7cc6 --- /dev/null +++ b/rails/deprecated.md @@ -0,0 +1,19 @@ +This image is officially deprecated in favor of [the standard `ruby` image](https://hub.docker.com/_/ruby/), and will receive no further updates after 2016-12-31 (Dec 31, 2016). Please adjust your usage accordingly. + +For most usages of this image, it was already not bringing in `rails` from this image, but actually from your project's `Gemfile`, so the only "value" being added here was the pre-installing of `nodejs`, `mysql-client`, `postgresql-client`, and `sqlite3` for various uses of the `rails` framework. + +For example, a `Dockerfile` similar to the following would be a good starting point for a Rails project using PostgreSQL: + +```dockerfile +FROM ruby:2.3 + +RUN apt-get update && apt-get install -y postgresql-client --no-install-recommends && rm -rf /var/lib/apt/lists/* + +WORKDIR /usr/src/app +COPY Gemfile* ./ +RUN bundle install +COPY . . + +EXPOSE 3000 +CMD ["rails", "server", "-b", "0.0.0.0"] +```