Skip to content

Commit

Permalink
refactor: run dprint on Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
azzamsa committed Jan 8, 2024
1 parent f9d8e0b commit 78f857b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
},
"toml": {
},
"dockerfile": {
},
"includes": ["**/*.{json,md,toml,dockerfile}"],
"excludes": [
"**/*-lock.json",
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

ARG VCS_REVISION

FROM docker.io/lukemathwalker/cargo-chef:0.1.62-rust-1.74 as chef
FROM docker.io/lukemathwalker/cargo-chef:0.1.62-rust-1.74 AS chef
WORKDIR app

FROM chef as planner
FROM chef AS planner
COPY . .
RUN cargo chef prepare --recipe-path recipe.json

FROM chef as builder
FROM chef AS builder
COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
Expand Down

0 comments on commit 78f857b

Please sign in to comment.