1
0
Fork 0
mirror of https://github.com/docker-library/ruby.git synced 2022-11-09 11:41:34 -05:00

Merge pull request #49 from nicknovitski/no-document

Use --no-document flag in .gemrc
This commit is contained in:
Tianon Gravi 2015-08-11 09:16:13 -07:00
commit 7cc4eaa8d4
6 changed files with 24 additions and 24 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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