21700: Remove `bundle install` from package build Dockerfiles
[arvados.git] / build / package-build-dockerfiles / debian12 / Dockerfile
index 17f2218d0dcefa6d197270e392455fea58f281a0..e25745565e9ba91fc8ccf3fae81b40bc9205e4d3 100644 (file)
@@ -64,22 +64,17 @@ RUN /usr/bin/apt-get update && /usr/bin/apt-get install -q -y \
     unzip
 
 RUN echo "gem: --no-document" >> ~/.gemrc && \
-    gem install bundler --version 2.2.19 && \
+    gem install --conservative --version '>= 2.4.0' bundler && \
     gem install fpm --version 1.15.1 && \
     bundle config --global jobs $(let a=$(grep -c processor /proc/cpuinfo )-1; echo $a)
 
 # Cf. https://build.betterup.com/one-weird-trick-that-will-speed-up-your-bundle-install/
 ENV MAKE "make --jobs 8"
 
-# Preseed the go module cache and the ruby gems, using the currently checked
-# out branch of the source tree. This avoids potential compatibility issues
-# between the version of Ruby and certain gems.
+# Preseed the go module cache.
 RUN git clone git://git.arvados.org/arvados.git /tmp/arvados && \
     cd /tmp/arvados && \
     if [[ -n "${BRANCH}" ]]; then git checkout ${BRANCH}; fi && \
-    cd /tmp/arvados/services/api && \
-    bundle install && \
-    cd /tmp/arvados && \
     go mod download
 
 ENV WORKSPACE /arvados