mirror of
https://github.com/docker-library/ruby.git
synced 2022-11-09 11:41:34 -05:00
Remove /root/.gem to shrink image size
This commit is contained in:
parent
ca5366d8e8
commit
c9a4472a01
19 changed files with 38 additions and 19 deletions
|
@ -94,7 +94,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -59,7 +59,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -85,7 +85,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -94,7 +94,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -59,7 +59,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -85,7 +85,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -94,7 +94,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -94,7 +94,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -94,7 +94,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -59,7 +59,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -85,7 +85,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -59,7 +59,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -85,7 +85,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -94,7 +94,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -59,7 +59,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -85,7 +85,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -94,7 +94,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -59,7 +59,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
|
@ -85,7 +85,8 @@ RUN set -ex \
|
|||
&& rm -r /usr/src/ruby \
|
||||
\
|
||||
&& gem update --system "$RUBYGEMS_VERSION" \
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force
|
||||
&& gem install bundler --version "$BUNDLER_VERSION" --force \
|
||||
&& rm -r /root/.gem/
|
||||
|
||||
# install things globally, for great justice
|
||||
# and don't create ".bundle" in all our apps
|
||||
|
|
Loading…
Reference in a new issue