diff --git a/2.0/Dockerfile b/2.0/Dockerfile index efaac98f2..0e5a45c05 100644 --- a/2.0/Dockerfile +++ b/2.0/Dockerfile @@ -5,6 +5,9 @@ ENV RUBY_VERSION 2.0.0-p645 ENV RUBY_DOWNLOAD_SHA256 5e9f8effffe97cba5ef0015feec6e1e5f3bacf6ace78cd1cdf72708cd71cf4ab ENV RUBYGEMS_VERSION 2.4.8 +# skip installing gem documentation +RUN echo 'install: --no-document\nupdate: --no-document' > "$HOME/.gemrc" + # some of ruby's build scripts are written in ruby # we purge this later to make sure our final image uses what we just built RUN apt-get update \ @@ -21,12 +24,9 @@ RUN apt-get update \ && make -j"$(nproc)" \ && make install \ && apt-get purge -y --auto-remove bison libgdbm-dev ruby \ - && gem update --no-document --system $RUBYGEMS_VERSION \ + && gem update --system $RUBYGEMS_VERSION \ && rm -r /usr/src/ruby -# skip installing gem documentation -RUN echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc" - # install things globally, for great justice ENV GEM_HOME /usr/local/bundle ENV PATH $GEM_HOME/bin:$PATH diff --git a/2.0/slim/Dockerfile b/2.0/slim/Dockerfile index daafec6c9..260b37afc 100644 --- a/2.0/slim/Dockerfile +++ b/2.0/slim/Dockerfile @@ -17,6 +17,9 @@ ENV RUBY_MAJOR 2.0 ENV RUBY_VERSION 2.0.0-p645 ENV RUBYGEMS_VERSION 2.4.8 +# skip installing gem documentation +RUN echo 'install: --no-document\nupdate: --no-document' >> "$HOME/.gemrc" + # some of ruby's build scripts are written in ruby # we purge this later to make sure our final image uses what we just built RUN buildDeps=' \ @@ -45,13 +48,10 @@ RUN buildDeps=' \ && ./configure --disable-install-doc \ && make -j"$(nproc)" \ && make install \ - && gem update --no-document --system $RUBYGEMS_VERSION \ + && gem update --system $RUBYGEMS_VERSION \ && rm -r /usr/src/ruby \ && apt-get purge -y --auto-remove $buildDeps -# skip installing gem documentation -RUN echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc" - # install things globally, for great justice ENV GEM_HOME /usr/local/bundle ENV PATH $GEM_HOME/bin:$PATH diff --git a/2.1/Dockerfile b/2.1/Dockerfile index c7c250a21..7de51de2d 100644 --- a/2.1/Dockerfile +++ b/2.1/Dockerfile @@ -5,6 +5,9 @@ ENV RUBY_VERSION 2.1.6 ENV RUBY_DOWNLOAD_SHA256 1e1362ae7427c91fa53dc9c05aee4ee200e2d7d8970a891c5bd76bee28d28be4 ENV RUBYGEMS_VERSION 2.4.8 +# skip installing gem documentation +RUN echo 'install: --no-document\nupdate: --no-document' >> "$HOME/.gemrc" + # some of ruby's build scripts are written in ruby # we purge this later to make sure our final image uses what we just built RUN apt-get update \ @@ -21,12 +24,9 @@ RUN apt-get update \ && make -j"$(nproc)" \ && make install \ && apt-get purge -y --auto-remove bison libgdbm-dev ruby \ - && gem update --no-document --system $RUBYGEMS_VERSION \ + && gem update --system $RUBYGEMS_VERSION \ && rm -r /usr/src/ruby -# skip installing gem documentation -RUN echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc" - # install things globally, for great justice ENV GEM_HOME /usr/local/bundle ENV PATH $GEM_HOME/bin:$PATH diff --git a/2.1/slim/Dockerfile b/2.1/slim/Dockerfile index 74360bcb4..e12b1177e 100644 --- a/2.1/slim/Dockerfile +++ b/2.1/slim/Dockerfile @@ -17,6 +17,9 @@ ENV RUBY_MAJOR 2.1 ENV RUBY_VERSION 2.1.6 ENV RUBYGEMS_VERSION 2.4.8 +# skip installing gem documentation +RUN echo 'install: --no-document\nupdate: --no-document' >> "$HOME/.gemrc" + # some of ruby's build scripts are written in ruby # we purge this later to make sure our final image uses what we just built RUN buildDeps=' \ @@ -45,13 +48,10 @@ RUN buildDeps=' \ && ./configure --disable-install-doc \ && make -j"$(nproc)" \ && make install \ - && gem update --no-document --system $RUBYGEMS_VERSION \ + && gem update --system $RUBYGEMS_VERSION \ && rm -r /usr/src/ruby \ && apt-get purge -y --auto-remove $buildDeps -# skip installing gem documentation -RUN echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc" - # install things globally, for great justice ENV GEM_HOME /usr/local/bundle ENV PATH $GEM_HOME/bin:$PATH diff --git a/2.2/Dockerfile b/2.2/Dockerfile index 42f9a7234..876f4f7b7 100644 --- a/2.2/Dockerfile +++ b/2.2/Dockerfile @@ -5,6 +5,9 @@ ENV RUBY_VERSION 2.2.2 ENV RUBY_DOWNLOAD_SHA256 5ffc0f317e429e6b29d4a98ac521c3ce65481bfd22a8cf845fa02a7b113d9b44 ENV RUBYGEMS_VERSION 2.4.8 +# skip installing gem documentation +RUN echo 'install: --no-document\nupdate: --no-document' >> "$HOME/.gemrc" + # some of ruby's build scripts are written in ruby # we purge this later to make sure our final image uses what we just built RUN apt-get update \ @@ -21,12 +24,9 @@ RUN apt-get update \ && make -j"$(nproc)" \ && make install \ && apt-get purge -y --auto-remove bison libgdbm-dev ruby \ - && gem update --no-document --system $RUBYGEMS_VERSION \ + && gem update --system $RUBYGEMS_VERSION \ && rm -r /usr/src/ruby -# skip installing gem documentation -RUN echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc" - # install things globally, for great justice ENV GEM_HOME /usr/local/bundle ENV PATH $GEM_HOME/bin:$PATH diff --git a/2.2/slim/Dockerfile b/2.2/slim/Dockerfile index 0f4aa80de..ac87ecced 100644 --- a/2.2/slim/Dockerfile +++ b/2.2/slim/Dockerfile @@ -17,6 +17,9 @@ ENV RUBY_MAJOR 2.2 ENV RUBY_VERSION 2.2.2 ENV RUBYGEMS_VERSION 2.4.8 +# skip installing gem documentation +RUN echo 'install: --no-document\nupdate: --no-document' >> "$HOME/.gemrc" + # some of ruby's build scripts are written in ruby # we purge this later to make sure our final image uses what we just built RUN buildDeps=' \ @@ -45,13 +48,10 @@ RUN buildDeps=' \ && ./configure --disable-install-doc \ && make -j"$(nproc)" \ && make install \ - && gem update --no-document --system $RUBYGEMS_VERSION \ + && gem update --system $RUBYGEMS_VERSION \ && rm -r /usr/src/ruby \ && apt-get purge -y --auto-remove $buildDeps -# skip installing gem documentation -RUN echo 'gem: --no-rdoc --no-ri' >> "$HOME/.gemrc" - # install things globally, for great justice ENV GEM_HOME /usr/local/bundle ENV PATH $GEM_HOME/bin:$PATH