FROM openshift/golang-builder:1.12 AS builder
ENV __doozer=update BUILD_RELEASE=202005041055 BUILD_VERSION=v4.3.19 OS_GIT_MAJOR=4 OS_GIT_MINOR=3 OS_GIT_PATCH=19 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.3.19-202005041055 
ENV __doozer=merge OS_GIT_COMMIT=052209a OS_GIT_VERSION=4.3.19-202005041055-052209a SOURCE_DATE_EPOCH=1582152283 SOURCE_GIT_COMMIT=052209affb1fe85bdd87b37e2cf9a6fb98585e91 SOURCE_GIT_TAG=052209af 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.3.19.20200504.105538
ENV __doozer=update BUILD_RELEASE=202005041055 BUILD_VERSION=v4.3.19 OS_GIT_MAJOR=4 OS_GIT_MINOR=3 OS_GIT_PATCH=19 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.3.19-202005041055 
ENV __doozer=merge OS_GIT_COMMIT=052209a OS_GIT_VERSION=4.3.19-202005041055-052209a SOURCE_DATE_EPOCH=1582152283 SOURCE_GIT_COMMIT=052209affb1fe85bdd87b37e2cf9a6fb98585e91 SOURCE_GIT_TAG=052209af 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.3.19" \
        release="202005041055" \
        io.openshift.build.commit.id="052209affb1fe85bdd87b37e2cf9a6fb98585e91" \
        io.openshift.build.source-location="https://github.com/openshift/coredns" \
        io.openshift.build.commit.url="https://github.com/openshift/coredns/commit/052209affb1fe85bdd87b37e2cf9a6fb98585e91"

