Files
feedc0de 1ea79925d8
Validate and publish / Test image and chart (push) Successful in 3m33s
Validate and publish / Publish image and OCI chart (push) Successful in 26s
Strip sha256 hash
2026-10-14 20:14:45 +02:00

12 lines
331 B
Docker

FROM golang:1.26-bookworm AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -buildvcs=false -trimpath -ldflags="-s -w" -o /manager ./cmd/manager
FROM gcr.io/distroless/static-debian12:nonroot
COPY --from=build /manager /manager
USER 65532:65532
ENTRYPOINT ["/manager"]