Skip to content

Commit d3f126c

Browse files
Install the latest Ruby in builder image
1 parent dd88a9c commit d3f126c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

builders/wasm32-unknown-wasip1/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ RUN set -eux pipefail; \
3434
sh -s -- -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION; \
3535
chmod -R a+w $RUSTUP_HOME $CARGO_HOME
3636

37+
# Install the latest Ruby to use the latest Bundler for cross-building C extension gems.
38+
ADD --keep-git-dir=true https://github.com/ruby/ruby.git /buildruby
39+
RUN set -eux; \
40+
cd /buildruby; \
41+
./autogen.sh; \
42+
./configure --prefix=/usr/local --disable-install-doc; \
43+
make -j$(nproc); \
44+
make install; \
45+
cd /; \
46+
rm -rf /buildruby
47+
3748
ENV BUNDLE_PATH=/usr/local/gems
3849
RUN set -eux; \
3950
mkdir -p $BUNDLE_PATH; \

0 commit comments

Comments
 (0)