Skip to content

Commit 368b494

Browse files
committed
yum
1 parent 9b2a325 commit 368b494

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ RUN cargo chef prepare --recipe-path recipe.json
99
FROM chef AS builder
1010
COPY --from=planner /tricked-bot/recipe.json recipe.json
1111

12-
# Cache Rust toolchain and cargo registry
12+
# Cache cargo registry and build artifacts
1313
RUN --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
1918
COPY . .
2019
RUN --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

0 commit comments

Comments
 (0)