Fix FromAsCasing Dockerfile warning

See: https://docs.docker.com/reference/build-checks/from-as-casing/
Signed-off-by: Christina Ying Wang <christina@balena.io>
This commit is contained in:
Christina Ying Wang 2024-08-20 19:11:56 -07:00
parent fc6927e53d
commit 539114f968

View File

@ -7,7 +7,7 @@ ARG ALPINE_VERSION="3.19"
###################################################
# Build the supervisor dependencies
###################################################
FROM alpine:${ALPINE_VERSION} as build-base
FROM alpine:${ALPINE_VERSION} AS build-base
ARG ARCH
ARG NODE
@ -51,7 +51,7 @@ RUN npm ci --build-from-source=sqlite3 --sqlite=/usr/lib
# musl. We hack around this by copying the binary and its library
# dependencies to the final image
###################################################################
FROM debian:bullseye-slim as journal
FROM debian:bullseye-slim AS journal
RUN apt-get update && apt-get install -y --no-install-recommends systemd
@ -62,7 +62,7 @@ RUN /setup-journal.sh
# Extra dependencies. This uses alpine 3.11 as the
# procmail package was removed on 3.12
###################################################
FROM alpine:3.11 as extra
FROM alpine:3.11 AS extra
RUN apk add --update --no-cache procmail
@ -70,7 +70,7 @@ RUN apk add --update --no-cache procmail
# Image with the final production dependencies.
# This image will also be be used for testing
###################################################
FROM alpine:${ALPINE_VERSION} as runtime-base
FROM alpine:${ALPINE_VERSION} AS runtime-base
ARG NODE
@ -113,7 +113,7 @@ ENV LED_FILE=/dev/null \
###############################################################
# Use the base image to run integration tests and for livepush
###############################################################
FROM runtime-base as test
FROM runtime-base AS test
ARG NPM
ARG ARCH
@ -160,7 +160,7 @@ CMD npm run test:integration
###################################################
# Build the production package
###################################################
FROM build-base as build-prod
FROM build-base AS build-prod
WORKDIR /usr/src/app