From bee91500ba904b1ab2f019d2a455d5c3ab3586c9 Mon Sep 17 00:00:00 2001 From: Alice Khoudli Date: Thu, 7 Nov 2024 21:45:01 +0100 Subject: [PATCH] docker: fix FromAsCasing warning in dockerfiles Signed-off-by: Alice Khoudli --- front/docker/Dockerfile.devel | 2 +- front/docker/Dockerfile.nginx | 4 ++-- gateway/Dockerfile | 6 +++--- osrdyne/Dockerfile | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/front/docker/Dockerfile.devel b/front/docker/Dockerfile.devel index 320297c885f..7734ca1ebb3 100644 --- a/front/docker/Dockerfile.devel +++ b/front/docker/Dockerfile.devel @@ -1,4 +1,4 @@ -FROM alpine as exec_as_builder +FROM alpine AS exec_as_builder RUN apk add build-base COPY docker/exec-as.c . diff --git a/front/docker/Dockerfile.nginx b/front/docker/Dockerfile.nginx index e4045c73336..ae547185079 100644 --- a/front/docker/Dockerfile.nginx +++ b/front/docker/Dockerfile.nginx @@ -1,6 +1,6 @@ ### BUILD STAGE -FROM node:20-bookworm as build +FROM node:20-bookworm AS build WORKDIR /app @@ -14,7 +14,7 @@ RUN yarn generate-licenses && yarn build ### TESTS STAGE -FROM build as tests +FROM build AS tests # Allow to import tests data files COPY --from=test_data . /tests/data diff --git a/gateway/Dockerfile b/gateway/Dockerfile index b67474ba443..8b0420f1841 100644 --- a/gateway/Dockerfile +++ b/gateway/Dockerfile @@ -9,14 +9,14 @@ WORKDIR /gateway ####################### # Cargo chef : Recipe # ####################### -FROM chef as planner +FROM chef AS planner COPY . . RUN cargo chef prepare --recipe-path recipe.json ###################### # Cargo chef : build # ###################### -FROM chef as run_builder +FROM chef AS run_builder RUN apk add --no-cache musl-dev build-base jemalloc-dev openssl-dev mold ENV RUSTFLAGS="-C link-arg=-fuse-ld=mold" COPY --from=planner /gateway/recipe.json recipe.json @@ -47,7 +47,7 @@ COPY . . ####################### # Running env : build # ####################### -FROM alpine:3.20 as running_env +FROM alpine:3.20 AS running_env RUN apk add --no-cache curl ca-certificates bind-tools COPY --from=run_builder /usr/local/cargo/bin/osrd_gateway /usr/local/bin/osrd_gateway diff --git a/osrdyne/Dockerfile b/osrdyne/Dockerfile index 5f8b13bbaed..a698dd70df5 100644 --- a/osrdyne/Dockerfile +++ b/osrdyne/Dockerfile @@ -9,14 +9,14 @@ WORKDIR /osrdyne ####################### # Cargo chef : Recipe # ####################### -FROM chef as planner +FROM chef AS planner COPY . . RUN cargo chef prepare --recipe-path recipe.json ###################### # Cargo chef : build # ###################### -FROM chef as run_builder +FROM chef AS run_builder RUN apk add --no-cache musl-dev build-base jemalloc-dev mold ENV RUSTFLAGS="-C link-arg=-fuse-ld=mold" COPY --from=planner /osrdyne/recipe.json recipe.json @@ -47,7 +47,7 @@ COPY . . ####################### # Running env : build # ####################### -FROM alpine:3.20 as running_env +FROM alpine:3.20 AS running_env RUN apk add --no-cache curl ca-certificates bind-tools COPY --from=run_builder /usr/local/cargo/bin/osrdyne /usr/local/bin/osrdyne