From cbf6c3b73c04f844c30a26ade7b2ebd30d4c1e12 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 5 Jul 2024 07:46:45 +0100 Subject: [PATCH] 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) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d2a0622..1595fd2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,12 @@ FROM git.kemitix.net/kemitix/git-next-builder:latest AS chef WORKDIR /app -FROM chef as planner +FROM chef AS planner COPY Cargo.toml ./ COPY crates crates 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 --profile release --recipe-path recipe.json COPY . .