@@ -31,24 +31,24 @@ RUN apt-get update && apt-get install -y \
3131 && rm -rf /var/lib/apt/lists/*
3232
3333# Install ruby-install once (cached layer)
34- RUN curl -fsSL https://github.com/postmodern/ruby-install/releases/download/v0.9.3 /ruby-install-0.9.3 .tar.gz | tar -xzf - \
35- && cd ruby-install-0.9.3 \
34+ RUN curl -fsSL https://github.com/postmodern/ruby-install/releases/download/v0.10.1 /ruby-install-0.10.1 .tar.gz | tar -xzf - \
35+ && cd ruby-install-0.10.1 \
3636 && make install \
3737 && cd .. \
38- && rm -rf ruby-install-0.9.3
38+ && rm -rf ruby-install-0.10.1
3939
40- # Stage for Ruby 3.2.4 compilation
41- FROM base AS ruby-3-2-4
40+ # Stage for Ruby 4.0.1 compilation
41+ FROM base AS ruby-4-0-1
4242
4343RUN mkdir -p /opt/rubies && \
4444 MAKE_OPTS="-j$(nproc)" \
4545 ruby-install \
46- --install-dir /opt/rubies/ruby-3.2.4 \
46+ --install-dir /opt/rubies/ruby-4.0.1 \
4747 --jobs $(nproc) \
4848 --cleanup \
49- ruby 3.2.4 \
49+ ruby 4.0.1 \
5050 -- --with-jemalloc \
51- && /opt/rubies/ruby-3.2.4 /bin/gem install bundler --no-document
51+ && /opt/rubies/ruby-4.0.1 /bin/gem install bundler --no-document
5252
5353# Stage for Ruby 3.4.5 compilation
5454FROM base AS ruby-3-4-5
@@ -73,7 +73,7 @@ RUN git clone https://github.com/shellspec/shellspec.git /tmp/shellspec \
7373 && rm -rf /tmp/shellspec
7474
7575# Copy compiled Ruby installations from parallel stages
76- COPY --from=ruby-3-2-4 /opt/rubies/ruby-3.2.4 /opt/rubies/ruby-3.2.4
76+ COPY --from=ruby-4-0-1 /opt/rubies/ruby-4.0.1 /opt/rubies/ruby-4.0.1
7777COPY --from=ruby-3-4-5 /opt/rubies/ruby-3.4.5 /opt/rubies/ruby-3.4.5
7878
7979# Create test user (non-root for realistic testing)
0 commit comments