forked from kemitix/git-next
chore: lint fix for Dockerfile
> 2 warnings found (use --debug to expand): > - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 6) > - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 11)
This commit is contained in:
parent
b0be0f636c
commit
cbf6c3b73c
1 changed files with 2 additions and 2 deletions
|
@ -3,12 +3,12 @@
|
||||||
FROM git.kemitix.net/kemitix/git-next-builder:latest AS chef
|
FROM git.kemitix.net/kemitix/git-next-builder:latest AS chef
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
FROM chef as planner
|
FROM chef AS planner
|
||||||
COPY Cargo.toml ./
|
COPY Cargo.toml ./
|
||||||
COPY crates crates
|
COPY crates crates
|
||||||
RUN cargo chef prepare --recipe-path recipe.json
|
RUN cargo chef prepare --recipe-path recipe.json
|
||||||
|
|
||||||
FROM chef as builder
|
FROM chef AS builder
|
||||||
COPY --from=planner /app/recipe.json recipe.json
|
COPY --from=planner /app/recipe.json recipe.json
|
||||||
RUN cargo chef cook --profile release --recipe-path recipe.json
|
RUN cargo chef cook --profile release --recipe-path recipe.json
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
Loading…
Reference in a new issue