File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,14 @@ RUN cargo chef prepare --recipe-path recipe.json
99FROM chef AS builder
1010COPY --from=planner /tricked-bot/recipe.json recipe.json
1111
12- # Cache Rust toolchain and cargo registry
12+ # Cache cargo registry and build artifacts
1313RUN --mount=type=cache,target=/usr/local/cargo/registry \
14- --mount=type=cache,target=/usr/local/rustup \
1514 --mount=type=cache,target=/tricked-bot/target \
1615 cargo chef cook --release --recipe-path recipe.json
1716
1817# Build application
1918COPY . .
2019RUN --mount=type=cache,target=/usr/local/cargo/registry \
21- --mount=type=cache,target=/usr/local/rustup \
2220 --mount=type=cache,target=/tricked-bot/target \
2321 cargo build --release --bin tricked-bot && \
2422 cp /tricked-bot/target/release/tricked-bot /usr/local/bin/tricked-bot
You can’t perform that action at this time.
0 commit comments