FROM openshift/golang-builder:1.12 AS builder
ENV __doozer=update BUILD_RELEASE=202006230600.p0 BUILD_VERSION=v4.2.36 OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=36 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.2.36-202006230600.p? 
ENV __doozer=merge OS_GIT_COMMIT=51569b2 OS_GIT_VERSION=4.2.36-202006230600.p?-51569b2 SOURCE_DATE_EPOCH=1562784015 SOURCE_GIT_COMMIT=51569b24b4a92d6d8df2020c2e8e2866c5e78266 SOURCE_GIT_TAG=v3.11.0-517-g51569b24 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.2.36.20200623.060003
ENV __doozer=update BUILD_RELEASE=202006230600.p0 BUILD_VERSION=v4.2.36 OS_GIT_MAJOR=4 OS_GIT_MINOR=2 OS_GIT_PATCH=36 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.2.36-202006230600.p? 
ENV __doozer=merge OS_GIT_COMMIT=51569b2 OS_GIT_VERSION=4.2.36-202006230600.p?-51569b2 SOURCE_DATE_EPOCH=1562784015 SOURCE_GIT_COMMIT=51569b24b4a92d6d8df2020c2e8e2866c5e78266 SOURCE_GIT_TAG=v3.11.0-517-g51569b24 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" \
        version="v4.2.36" \
        release="202006230600.p0" \
        io.openshift.build.commit.id="51569b24b4a92d6d8df2020c2e8e2866c5e78266" \
        io.openshift.build.source-location="https://github.com/openshift/coredns" \
        io.openshift.build.commit.url="https://github.com/openshift/coredns/commit/51569b24b4a92d6d8df2020c2e8e2866c5e78266"

