@@ -41,9 +41,9 @@ COPY patch /all-ruby/patch/
4141RUN rake setup_build
4242
4343# =============================================================================
44- # Group: legacy ( 0.x, 1.0, 1.1, 1.8.0-1.8.5, 2.0.0) on Debian Buster
44+ # Ruby 0.x, 1.0, 1.1, 1.8.0-1.8.5, 2.0.0 on Debian Buster
4545# =============================================================================
46- FROM builder-buster AS group-legacy
46+ FROM builder-buster AS ruby-0.x-2.0
4747ARG j=numcpu_plus_alpha
4848
4949COPY versions/0.* versions/1.0* versions/1.1* versions/1.8.0* versions/1.8.1* versions/1.8.2* versions/1.8.3* versions/1.8.4* versions/1.8.5* versions/2.0.0* /all-ruby/versions/
@@ -88,9 +88,9 @@ COPY patch /all-ruby/patch/
8888RUN rake setup_build
8989
9090# =============================================================================
91- # Group A: 1.2-1.8.7, 1.9.x
91+ # Ruby 1.2-1.8.7, 1.9.x
9292# =============================================================================
93- FROM builder-bullseye AS group-a
93+ FROM builder-bullseye AS ruby-1.2-1.9
9494ARG j=numcpu_plus_alpha
9595
9696COPY versions/1.2* versions/1.3* versions/1.4* versions/1.6* versions/1.8.6* versions/1.8.7* versions/1.9* /all-ruby/versions/
@@ -104,9 +104,9 @@ RUN rm -rf Rakefile versions/ patch/ DIST build/*/log build/*/ruby*/ \
104104RUN find /build-all-ruby -type f \( -name ruby -o -name '*.so' \) -exec sh -c 'file $1 | grep -q "not stripped"' - '{}' \; -print0 | xargs -0 strip
105105
106106# =============================================================================
107- # Group B: 2.1-2.4
107+ # Ruby 2.1-2.4
108108# =============================================================================
109- FROM builder-bullseye AS group-b
109+ FROM builder-bullseye AS ruby-2.1-2.4
110110ARG j=numcpu_plus_alpha
111111
112112COPY versions/2.1* versions/2.2* versions/2.3* versions/2.4* /all-ruby/versions/
@@ -118,9 +118,9 @@ RUN rm -rf Rakefile versions/ patch/ DIST build/*/log build/*/ruby*/ \
118118RUN find /build-all-ruby -type f \( -name ruby -o -name '*.so' \) -exec sh -c 'file $1 | grep -q "not stripped"' - '{}' \; -print0 | xargs -0 strip
119119
120120# =============================================================================
121- # Group C: 2.5-2.7
121+ # Ruby 2.5-2.7
122122# =============================================================================
123- FROM builder-bullseye AS group-c
123+ FROM builder-bullseye AS ruby-2.5-2.7
124124ARG j=numcpu_plus_alpha
125125
126126COPY versions/2.5* versions/2.6* versions/2.7* /all-ruby/versions/
@@ -132,9 +132,9 @@ RUN rm -rf Rakefile versions/ patch/ DIST build/*/log build/*/ruby*/ \
132132RUN find /build-all-ruby -type f \( -name ruby -o -name '*.so' \) -exec sh -c 'file $1 | grep -q "not stripped"' - '{}' \; -print0 | xargs -0 strip
133133
134134# =============================================================================
135- # Group D: 3.0-3.2
135+ # Ruby 3.0-3.2
136136# =============================================================================
137- FROM builder-bullseye AS group-d
137+ FROM builder-bullseye AS ruby-3.0-3.2
138138ARG j=numcpu_plus_alpha
139139
140140COPY versions/3.0* versions/3.1* versions/3.2* /all-ruby/versions/
@@ -146,9 +146,9 @@ RUN rm -rf Rakefile versions/ patch/ DIST build/*/log build/*/ruby*/ \
146146RUN find /build-all-ruby -type f \( -name ruby -o -name '*.so' \) -exec sh -c 'file $1 | grep -q "not stripped"' - '{}' \; -print0 | xargs -0 strip
147147
148148# =============================================================================
149- # Group E: 3.3-4.0
149+ # Ruby 3.3-4.0
150150# =============================================================================
151- FROM builder-bullseye AS group-e
151+ FROM builder-bullseye AS ruby-3.3-4.0
152152ARG j=numcpu_plus_alpha
153153
154154COPY versions/3.3* versions/3.4* versions/3.5* versions/4.0* /all-ruby/versions/
@@ -195,18 +195,18 @@ RUN dpkg --add-architecture i386 \
195195 ${system_ruby} \
196196 && rm -rf /var/lib/apt/lists/*
197197
198- COPY --from=group-legacy /build-all-ruby/ /build-all-ruby/
199- COPY --from=group-legacy /all-ruby/ /all-ruby/
200- COPY --from=group-a /build-all-ruby/ /build-all-ruby/
201- COPY --from=group-a /all-ruby/bin/ /all-ruby/bin/
202- COPY --from=group-b /build-all-ruby/ /build-all-ruby/
203- COPY --from=group-b /all-ruby/bin/ /all-ruby/bin/
204- COPY --from=group-c /build-all-ruby/ /build-all-ruby/
205- COPY --from=group-c /all-ruby/bin/ /all-ruby/bin/
206- COPY --from=group-d /build-all-ruby/ /build-all-ruby/
207- COPY --from=group-d /all-ruby/bin/ /all-ruby/bin/
208- COPY --from=group-e /build-all-ruby/ /build-all-ruby/
209- COPY --from=group-e /all-ruby/bin/ /all-ruby/bin/
198+ COPY --from=ruby-0.x-2.0 /build-all-ruby/ /build-all-ruby/
199+ COPY --from=ruby-0.x-2.0 /all-ruby/ /all-ruby/
200+ COPY --from=ruby-1.2-1.9 /build-all-ruby/ /build-all-ruby/
201+ COPY --from=ruby-1.2-1.9 /all-ruby/bin/ /all-ruby/bin/
202+ COPY --from=ruby-2.1-2.4 /build-all-ruby/ /build-all-ruby/
203+ COPY --from=ruby-2.1-2.4 /all-ruby/bin/ /all-ruby/bin/
204+ COPY --from=ruby-2.5-2.7 /build-all-ruby/ /build-all-ruby/
205+ COPY --from=ruby-2.5-2.7 /all-ruby/bin/ /all-ruby/bin/
206+ COPY --from=ruby-3.0-3.2 /build-all-ruby/ /build-all-ruby/
207+ COPY --from=ruby-3.0-3.2 /all-ruby/bin/ /all-ruby/bin/
208+ COPY --from=ruby-3.3-4.0 /build-all-ruby/ /build-all-ruby/
209+ COPY --from=ruby-3.3-4.0 /all-ruby/bin/ /all-ruby/bin/
210210
211211COPY lib/* /all-ruby/lib/
212212COPY all-ruby /all-ruby/
0 commit comments