diff --git a/2.2/alpine3.4/Dockerfile b/2.2/alpine3.4/Dockerfile index 1b4dcc745..bee499096 100644 --- a/2.2/alpine3.4/Dockerfile +++ b/2.2/alpine3.4/Dockerfile @@ -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 diff --git a/2.2/jessie/Dockerfile b/2.2/jessie/Dockerfile index 44aed8a98..03c99b578 100644 --- a/2.2/jessie/Dockerfile +++ b/2.2/jessie/Dockerfile @@ -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 diff --git a/2.2/jessie/slim/Dockerfile b/2.2/jessie/slim/Dockerfile index 1b09a30ff..b8d43ea61 100644 --- a/2.2/jessie/slim/Dockerfile +++ b/2.2/jessie/slim/Dockerfile @@ -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 diff --git a/2.3/alpine3.4/Dockerfile b/2.3/alpine3.4/Dockerfile index d81dcfa65..6be2a437a 100644 --- a/2.3/alpine3.4/Dockerfile +++ b/2.3/alpine3.4/Dockerfile @@ -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 diff --git a/2.3/jessie/Dockerfile b/2.3/jessie/Dockerfile index 2403f8d85..ca6daf8b3 100644 --- a/2.3/jessie/Dockerfile +++ b/2.3/jessie/Dockerfile @@ -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 diff --git a/2.3/jessie/slim/Dockerfile b/2.3/jessie/slim/Dockerfile index d5b071dba..1be9667eb 100644 --- a/2.3/jessie/slim/Dockerfile +++ b/2.3/jessie/slim/Dockerfile @@ -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 diff --git a/2.4/alpine3.4/Dockerfile b/2.4/alpine3.4/Dockerfile index 13e5c023e..6ba2673cc 100644 --- a/2.4/alpine3.4/Dockerfile +++ b/2.4/alpine3.4/Dockerfile @@ -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 diff --git a/2.4/alpine3.6/Dockerfile b/2.4/alpine3.6/Dockerfile index 9e96ef17b..23f20bd39 100644 --- a/2.4/alpine3.6/Dockerfile +++ b/2.4/alpine3.6/Dockerfile @@ -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 diff --git a/2.4/alpine3.7/Dockerfile b/2.4/alpine3.7/Dockerfile index f77eeccc2..10d6d5b6d 100644 --- a/2.4/alpine3.7/Dockerfile +++ b/2.4/alpine3.7/Dockerfile @@ -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 diff --git a/2.4/jessie/Dockerfile b/2.4/jessie/Dockerfile index 8773b3fde..4c799b83e 100644 --- a/2.4/jessie/Dockerfile +++ b/2.4/jessie/Dockerfile @@ -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 diff --git a/2.4/jessie/slim/Dockerfile b/2.4/jessie/slim/Dockerfile index 7cb217410..71ac26a68 100644 --- a/2.4/jessie/slim/Dockerfile +++ b/2.4/jessie/slim/Dockerfile @@ -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 diff --git a/2.4/stretch/Dockerfile b/2.4/stretch/Dockerfile index 89f7a9da5..11804ed4d 100644 --- a/2.4/stretch/Dockerfile +++ b/2.4/stretch/Dockerfile @@ -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 diff --git a/2.4/stretch/slim/Dockerfile b/2.4/stretch/slim/Dockerfile index b61bad52e..820356c1e 100644 --- a/2.4/stretch/slim/Dockerfile +++ b/2.4/stretch/slim/Dockerfile @@ -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 diff --git a/2.5/alpine3.7/Dockerfile b/2.5/alpine3.7/Dockerfile index 2873a3b6b..7564684f9 100644 --- a/2.5/alpine3.7/Dockerfile +++ b/2.5/alpine3.7/Dockerfile @@ -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 diff --git a/2.5/stretch/Dockerfile b/2.5/stretch/Dockerfile index d041b962a..5eb25b694 100644 --- a/2.5/stretch/Dockerfile +++ b/2.5/stretch/Dockerfile @@ -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 diff --git a/2.5/stretch/slim/Dockerfile b/2.5/stretch/slim/Dockerfile index e31092b6b..0bdeb58c3 100644 --- a/2.5/stretch/slim/Dockerfile +++ b/2.5/stretch/slim/Dockerfile @@ -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 diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index e6e6cdbb9..9f2342308 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -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 diff --git a/Dockerfile-debian.template b/Dockerfile-debian.template index d323817e1..9ac03cb1d 100644 --- a/Dockerfile-debian.template +++ b/Dockerfile-debian.template @@ -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 diff --git a/Dockerfile-slim.template b/Dockerfile-slim.template index 9825ddd05..80834f1a7 100644 --- a/Dockerfile-slim.template +++ b/Dockerfile-slim.template @@ -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