update Dockerfile
This commit is contained in:
parent
e4c2752335
commit
291d84dfd0
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM rust:1.83.0-bookworm as planner
|
||||
FROM rust:1.83.0-bookworm AS planner
|
||||
RUN cargo install cargo-chef
|
||||
|
||||
WORKDIR /app
|
||||
|
@ -21,6 +21,8 @@ RUN cargo chef cook --recipe-path recipe.json
|
|||
# Build the whole project
|
||||
COPY . .
|
||||
RUN cargo build --profile release
|
||||
|
||||
# Run the project
|
||||
FROM rust:1.83.0-bookworm AS runner
|
||||
WORKDIR /app
|
||||
|
||||
|
|
Loading…
Reference in a new issue