From e5af8308ee3210eef703df1e3adfde3959913ff1 Mon Sep 17 00:00:00 2001 From: Matt Robinson Date: Tue, 5 Nov 2024 13:26:02 -0700 Subject: [PATCH] Correct Docker FromAsCasing warning ``` => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 46) ``` Signed-off-by: Matt Robinson --- docker/Dockerfile-debian | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile-debian b/docker/Dockerfile-debian index 8b51c51685..b549a381c7 100644 --- a/docker/Dockerfile-debian +++ b/docker/Dockerfile-debian @@ -1,4 +1,4 @@ -FROM debian:bookworm-slim as builder +FROM debian:bookworm-slim AS builder ARG DOCKER_TAG ARG BUILD_CONCURRENCY RUN mkdir -p /src && mkdir -p /opt @@ -43,7 +43,7 @@ RUN NPROC=${BUILD_CONCURRENCY:-$(nproc)} && \ # Multistage build to reduce image size - https://docs.docker.com/engine/userguide/eng-image/multistage-build/#use-multi-stage-builds # Only the content below ends up in the image, this helps remove /src from the image (which is large) -FROM debian:bookworm-slim as runstage +FROM debian:bookworm-slim AS runstage COPY --from=builder /usr/local /usr/local COPY --from=builder /opt /opt