mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
* update go 1.24.6 * fix non-constant format string error * update golang.org/x/tools@v0.36.0 and github.com/golangci/golangci-lint@v1.64.8 to pass execute golangci-lint * add a verpose diff output to prow test * remove pluginator binary version from generated files
23 lines
657 B
Docker
23 lines
657 B
Docker
# Copyright 2022 The Kubernetes Authors.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# build
|
|
FROM public.ecr.aws/docker/library/golang:1.24.6-bullseye AS builder
|
|
ARG VERSION
|
|
ARG DATE
|
|
RUN mkdir /build
|
|
ADD . /build/
|
|
WORKDIR /build/kustomize
|
|
RUN CGO_ENABLED=0 GO111MODULE=on go build \
|
|
-ldflags="-s -X sigs.k8s.io/kustomize/api/provenance.version=${VERSION} \
|
|
-X sigs.k8s.io/kustomize/api/provenance.buildDate=${DATE}"
|
|
|
|
# only copy binary
|
|
FROM public.ecr.aws/docker/library/alpine
|
|
# install dependencies
|
|
RUN apk add --no-cache git openssh
|
|
COPY --from=builder /build/kustomize/kustomize /app/
|
|
WORKDIR /app
|
|
ENV PATH="$PATH:/app"
|
|
ENTRYPOINT ["/app/kustomize"]
|