File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,10 @@ RUN apt install -y libssl-dev mold
44WORKDIR /app
55COPY . /app
66ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
7- RUN wget https://github.com/mozilla/sccache/releases/download/v0.2.15/sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz \
8- && tar xzf sccache-v0.2.15-x86_64-unknown-linux-musl.tar.gz \
9- && mv sccache-v0.2.15-x86_64-unknown-linux-musl/sccache /usr/local/bin/sccache \
10- && chmod +x /usr/local/bin/sccache
11- ENV RUSTC_WRAPPER=/usr/local/bin/sccache
12- ENV SCCACHE_DIR=/root/.cache/sccache
137ENV RUSTFLAGS="-C link-arg=-B/usr/bin/mold"
148# copy build artifact somewhere accessible so we can copy it in the next stage
159RUN --mount=type=cache,target=/root/.cargo \
16- --mount=type=cache,target=/root/.cache/sccache \
17- cargo build --release
10+ cargo build --release
1811
1912FROM redhat/ubi9-micro:latest
2013# RUN useradd -u 1001 chisel
You can’t perform that action at this time.
0 commit comments