FROM openshift/golang-builder@sha256:21aab8ec0f5d119e4f6dab12f7ad6a1cec15d5f9071ae0c7431be760f29d4c71 AS builder
ENV __doozer=update BUILD_RELEASE=202202120107.p0.g3cb11c0.assembly.stream BUILD_VERSION=v4.9.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=9 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.9.0-202202120107.p0.g3cb11c0.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=3cb11c0 OS_GIT_VERSION=4.9.0-202202120107.p0.g3cb11c0.assembly.stream-3cb11c0 SOURCE_DATE_EPOCH=1624915573 SOURCE_GIT_COMMIT=3cb11c075c7689a2178a03a5d22c5adff3efbd4d SOURCE_GIT_TAG=v3.11.0-1641-g3cb11c075 SOURCE_GIT_URL=https://github.com/openshift/coredns 
WORKDIR /go/src/github.com/coredns/coredns
COPY . .
RUN GO111MODULE=on GOFLAGS=-mod=vendor go build -o coredns .

FROM openshift/ose-base:v4.9.0-202201261125.p0.gf93eca8.assembly.stream
ENV __doozer=update BUILD_RELEASE=202202120107.p0.g3cb11c0.assembly.stream BUILD_VERSION=v4.9.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=9 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.9.0-202202120107.p0.g3cb11c0.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=3cb11c0 OS_GIT_VERSION=4.9.0-202202120107.p0.g3cb11c0.assembly.stream-3cb11c0 SOURCE_DATE_EPOCH=1624915573 SOURCE_GIT_COMMIT=3cb11c075c7689a2178a03a5d22c5adff3efbd4d SOURCE_GIT_TAG=v3.11.0-1641-g3cb11c075 SOURCE_GIT_URL=https://github.com/openshift/coredns 
COPY --from=builder /go/src/github.com/coredns/coredns/coredns /usr/bin/

ENTRYPOINT ["/usr/bin/coredns"]

LABEL \
        io.k8s.display-name="CoreDNS" \
        io.k8s.description="CoreDNS delivers the DNS and Discovery Service for a Kubernetes cluster." \
        maintainer="dev@lists.openshift.redhat.com" \
        name="openshift/ose-coredns" \
        com.redhat.component="coredns-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="DNS" \
        release="202202120107.p0.g3cb11c0.assembly.stream" \
        io.openshift.build.commit.id="3cb11c075c7689a2178a03a5d22c5adff3efbd4d" \
        io.openshift.build.source-location="https://github.com/openshift/coredns" \
        io.openshift.build.commit.url="https://github.com/openshift/coredns/commit/3cb11c075c7689a2178a03a5d22c5adff3efbd4d" \
        version="v4.9.0"

