Browse Source

Run update.sh

Docker Library Bot 9 years ago
parent
commit
d885cc74c0
1 changed files with 22 additions and 0 deletions
  1. 22 0
      rails/README.md

+ 22 - 0
rails/README.md

@@ -1,3 +1,25 @@
+# **DEPRECATED**
+
+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"]
+```
+
 # Supported tags and respective `Dockerfile` links
 
 -	[`5.0.0`, `5.0`, `5`, `latest` (*Dockerfile*)](https://github.com/docker-library/rails/blob/15389f3f777fe16044a04709c2000f98948d16fa/Dockerfile)