mirror of
https://github.com/mariadb-operator/mariadb-operator.git
synced 2025-08-16 14:57:09 +00:00
![dependabot[bot]](/assets/img/avatar_default.png)
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>
22 lines
421 B
Docker
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"]
|