Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: fix FromAsCasing warning in dockerfiles #9646

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading