Skip to content

Commit a5280fe

Browse files
authored
chore(ruby): remove libunwind from ruby (#216)
1 parent 603f822 commit a5280fe

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

docker/gem.Dockerfile

+3-11
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@ RUN curl https://static.rust-lang.org/rustup/dist/$(arch)-unknown-linux-musl/rus
88
ENV PATH=/root/.cargo/bin:$PATH
99
RUN yum -y install gcc libffi-devel openssl-devel wget gcc-c++ glibc-devel make
1010

11-
# for python
12-
ENV LIBUNWIND_VERSION=1.8.1
13-
RUN wget https://github.com/libunwind/libunwind/releases/download/v${LIBUNWIND_VERSION}/libunwind-${LIBUNWIND_VERSION}.tar.gz \
14-
&& tar -zxvf libunwind-${LIBUNWIND_VERSION}.tar.gz \
15-
&& cd libunwind-${LIBUNWIND_VERSION} \
16-
&& ./configure --disable-minidebuginfo --enable-ptrace --disable-tests --disable-documentation \
17-
&& make \
18-
&& make install
19-
2011
WORKDIR /pyroscope-rs
2112

2213
ADD Cross.toml \
@@ -29,8 +20,9 @@ ADD src src
2920
ADD pyroscope_backends pyroscope_backends
3021
ADD pyroscope_cli pyroscope_cli
3122
ADD pyroscope_ffi/ pyroscope_ffi/
32-
RUN cargo build -p ffiruby --release
33-
RUN cargo build -p thread_id --release
23+
# TODO --frozen
24+
RUN --mount=type=cache,target=/root/.cargo/registry cargo build -p ffiruby --release
25+
RUN --mount=type=cache,target=/root/.cargo/registry cargo build -p thread_id --release
3426

3527
FROM ruby:3.3 as builder-gem
3628
WORKDIR /gem

0 commit comments

Comments
 (0)