File tree 1 file changed +3
-11
lines changed
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
8
8
ENV PATH=/root/.cargo/bin:$PATH
9
9
RUN yum -y install gcc libffi-devel openssl-devel wget gcc-c++ glibc-devel make
10
10
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
-
20
11
WORKDIR /pyroscope-rs
21
12
22
13
ADD Cross.toml \
@@ -29,8 +20,9 @@ ADD src src
29
20
ADD pyroscope_backends pyroscope_backends
30
21
ADD pyroscope_cli pyroscope_cli
31
22
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
34
26
35
27
FROM ruby:3.3 as builder-gem
36
28
WORKDIR /gem
You can’t perform that action at this time.
0 commit comments