File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,6 @@ RUN curl https://static.rust-lang.org/rustup/dist/$(arch)-unknown-linux-musl/rus
88ENV PATH=/root/.cargo/bin:$PATH
99RUN 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-
2011WORKDIR /pyroscope-rs
2112
2213ADD Cross.toml \
@@ -29,8 +20,9 @@ ADD src src
2920ADD pyroscope_backends pyroscope_backends
3021ADD pyroscope_cli pyroscope_cli
3122ADD 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
3527FROM ruby:3.3 as builder-gem
3628WORKDIR /gem
You can’t perform that action at this time.
0 commit comments