Files
mariadb-operator/Dockerfile
dependabot[bot] 6c8ea04984 Bump golang from 1.24.4-alpine3.21 to 1.24.5-alpine3.21
Bumps golang from 1.24.4-alpine3.21 to 1.24.5-alpine3.21.

---
updated-dependencies:
- dependency-name: golang
  dependency-version: 1.24.5-alpine3.21
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-14 10:49:31 +02:00

22 lines
421 B
Docker

FROM golang:1.24.5-alpine3.21 AS builder
ARG TARGETOS
ARG TARGETARCH
ENV CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH}
WORKDIR /app
COPY go.mod go.sum /app/
RUN go mod download
COPY . /app
RUN go build -o mariadb-operator cmd/controller/*.go
FROM gcr.io/distroless/static AS app
WORKDIR /
COPY --from=builder /app/mariadb-operator /bin/mariadb-operator
USER 65532:65532
ENTRYPOINT ["/bin/mariadb-operator"]