File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838 push : true
3939 tags : ${{ steps.meta.outputs.tags }}
4040 labels : ${{ steps.meta.outputs.labels }}
41+ cache-from : type=gha
42+ cache-to : type=gha,mode=max
4143
4244
Original file line number Diff line number Diff line change 1- FROM rust:1.80-bookworm as builder
2-
1+ # Chef stage - prepares the recipe for dependency caching
2+ FROM rust:1.80-bookworm as chef
3+ RUN cargo install cargo-chef
34WORKDIR /app
45
6+ FROM chef as planner
57COPY . .
8+ RUN cargo chef prepare --recipe-path recipe.json
69
10+ FROM chef as builder
11+ COPY --from=planner /app/recipe.json recipe.json
12+ RUN cargo chef cook --release --recipe-path recipe.json
13+ COPY . .
714RUN cargo build --release
815
9- FROM rust:1.80-bookworm as runtime
10-
16+ FROM debian:bookworm-slim as runtime
17+ RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
18+ WORKDIR /app
1119COPY --from=builder /app/target/release/pembantu_telegram .
12-
1320CMD ["./pembantu_telegram" ]
You can’t perform that action at this time.
0 commit comments