diff --git a/Dockerfile b/Dockerfile index a746c875..a29ea804 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ ARG VERSION=17.0.2 ENV GITLAB_VERSION=${VERSION} \ RUBY_VERSION=3.2.4 \ RUBY_SOURCE_SHA256SUM="c72b3c5c30482dca18b0f868c9075f3f47d8168eaf626d4e682ce5b59c858692" \ + RUBYGEMS_VERSION=3.5.14 \ GOLANG_VERSION=1.22.4 \ GITLAB_SHELL_VERSION=14.35.0 \ GITLAB_PAGES_VERSION=17.0.2 \ diff --git a/assets/build/install.sh b/assets/build/install.sh index 31a23b69..47fc4620 100755 --- a/assets/build/install.sh +++ b/assets/build/install.sh @@ -56,6 +56,9 @@ make -j"$(nproc)" make install cd "$PWD_ORG" && rm -rf /tmp/ruby +# upgrade rubygems on demand +gem update --no-document --system "${RUBYGEMS_VERSION}" + # PaX-mark ruby # Applying the mark late here does make the build usable on PaX kernels, but # still the build itself must be executed on a non-PaX kernel. It's done here