Skip to content

Commit 9d479ac

Browse files
Install Ruby to /opt/ruby instead of /usr/local
Seems like extension build process is confused by the presence of /usr/local/include/ruby/config.h
1 parent 0508bfb commit 9d479ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builders/wasm32-unknown-wasip1/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ ADD --keep-git-dir=true https://github.com/ruby/ruby.git /buildruby
3939
RUN set -eux; \
4040
cd /buildruby; \
4141
./autogen.sh; \
42-
./configure --prefix=/usr/local --disable-install-doc; \
42+
mkdir -p /opt/ruby; \
43+
./configure --prefix=/opt/ruby --disable-install-doc; \
4344
make -j$(nproc); \
4445
make install; \
4546
cd /; \
4647
rm -rf /buildruby
48+
ENV PATH=/opt/ruby/bin:$PATH
4749

4850
ENV BUNDLE_PATH=/usr/local/gems
4951
RUN set -eux; \

0 commit comments

Comments
 (0)