mirror of
https://github.com/orhun/git-cliff.git
synced 2024-12-02 02:11:59 +03:00
fix(docker): pin the cargo-chef version in Dockerfile
This commit is contained in:
parent
d0e1a84bd8
commit
af1851c011
@ -1,9 +1,11 @@
|
|||||||
FROM lukemathwalker/cargo-chef as planner
|
# tracking issue about cargo-chef version: <https://github.com/LukeMathWalker/cargo-chef/issues/93>
|
||||||
|
|
||||||
|
FROM lukemathwalker/cargo-chef:0.1.23-alpha.0-rust-1.54-slim-buster as planner
|
||||||
WORKDIR app
|
WORKDIR app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo chef prepare --recipe-path recipe.json
|
RUN cargo chef prepare --recipe-path recipe.json
|
||||||
|
|
||||||
FROM lukemathwalker/cargo-chef as cacher
|
FROM lukemathwalker/cargo-chef:0.1.23-alpha.0-rust-1.54-slim-buster as cacher
|
||||||
WORKDIR app
|
WORKDIR app
|
||||||
COPY --from=planner /app/recipe.json recipe.json
|
COPY --from=planner /app/recipe.json recipe.json
|
||||||
RUN cargo chef cook --release --recipe-path recipe.json
|
RUN cargo chef cook --release --recipe-path recipe.json
|
||||||
|
Loading…
Reference in New Issue
Block a user