Skip to content

Commit

Permalink
docker: fix FromAsCasing warning in dockerfiles
Browse files Browse the repository at this point in the history
Signed-off-by: Alice Khoudli <[email protected]>
  • Loading branch information
Synar committed Nov 7, 2024
1 parent a92037a commit bee9150
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion front/docker/Dockerfile.devel
Original file line number Diff line number Diff line change
@@ -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 .
Expand Down
4 changes: 2 additions & 2 deletions front/docker/Dockerfile.nginx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### BUILD STAGE

FROM node:20-bookworm as build
FROM node:20-bookworm AS build

WORKDIR /app

Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions osrdyne/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit bee9150

Please sign in to comment.