Skip to content

Commit 0c7665a

Browse files
Merge pull request #595 from ruby/katei/install-baseruby34
2 parents 8a49b71 + 38b1e94 commit 0c7665a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

builders/wasm32-unknown-emscripten/Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@ RUN set -eux pipefail; \
3030
sh -s -- -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION; \
3131
chmod -R a+w $RUSTUP_HOME $CARGO_HOME
3232

33+
ADD https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.1.tar.gz /buildruby.tar.gz
34+
RUN set -eux; \
35+
mkdir /buildruby; \
36+
tar -xf /buildruby.tar.gz -C /buildruby --strip-components=1; \
37+
rm /buildruby.tar.gz; \
38+
cd /buildruby; \
39+
mkdir -p /opt/ruby; \
40+
./configure --prefix=/opt/ruby --disable-install-doc; \
41+
make -j$(nproc); \
42+
make install; \
43+
cd /; \
44+
rm -rf /buildruby
45+
ENV PATH=/opt/ruby/bin:$PATH
46+
3347
ENV BUNDLE_PATH=/usr/local/gems
3448
RUN set -eux; \
3549
mkdir -p $BUNDLE_PATH; \

0 commit comments

Comments
 (0)