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 <mattrob@hey.com>
This commit is contained in:
Matt Robinson 2024-11-05 13:26:02 -07:00
parent 3614af7f64
commit e5af8308ee
No known key found for this signature in database
GPG Key ID: 18CE61F11B732647

View File

@ -1,4 +1,4 @@
FROM debian:bookworm-slim as builder FROM debian:bookworm-slim AS builder
ARG DOCKER_TAG ARG DOCKER_TAG
ARG BUILD_CONCURRENCY ARG BUILD_CONCURRENCY
RUN mkdir -p /src && mkdir -p /opt 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 # 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) # 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 /usr/local /usr/local
COPY --from=builder /opt /opt COPY --from=builder /opt /opt