This image is officially deprecated in favor of the standard
ruby image, 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
sqlite3 for various uses of the
For example, a
Dockerfile similar to the following would be a good starting point for a Rails project using PostgreSQL:
FROM ruby:2.3 RUN apt-get update \ && apt-get install -y --no-install-recommends \ postgresql-client \ && 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"]
About this Repo
See a change merged here that doesn't show up on the Docker Hub yet? Check the "library/rails" manifest file in the docker-library/official-images repo, especially PRs with the "library/rails" label on that repo. For more information about the official images process, see the docker-library/official-images readme.
<!-- THIS FILE IS GENERATED BY https://github.com/docker-library/docs/blob/master/generate-repo-stub-readme.sh -->