fix: standardize Dockerfile stage names to uppercase
default-request-adder / vulnerabilities (pull_request) Successful in 3m13s
default-request-adder / test (pull_request) Successful in 3m36s
default-request-adder / build (pull_request) Successful in 1h12m8s

Updates the Dockerfile to use uppercase for multi-stage build
definitions. This change enhances readability and maintains consistency
across the build stages, ensuring alignment with common best practices in
Dockerfile conventions.
This commit is contained in:
2026-01-19 08:28:02 +01:00
parent b310c8df57
commit 9a089c8af7
+3 -3
View File
@@ -1,9 +1,9 @@
FROM golang:1.25.6@sha256:fc24d3881a021e7b968a4610fc024fba749f98fe5c07d4f28e6cfa14dc65a84c as deps
FROM golang:1.25.6@sha256:fc24d3881a021e7b968a4610fc024fba749f98fe5c07d4f28e6cfa14dc65a84c AS deps
WORKDIR /build
ADD go.* /build
RUN go mod download
FROM deps as build
FROM deps AS build
ARG TARGETOS
ARG TARGETARCH
@@ -19,7 +19,7 @@ RUN go tool cover -func=coverage.txt
RUN rm coverage.txt.tmp
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 go build -mod=readonly -o release/default-request-adder -ldflags '-w -s'
FROM scratch as export
FROM scratch AS export
COPY --from=build /build/coverage.txt /
FROM scratch