FROM openshift/golang-builder:1.13 AS builder
ENV __doozer=update BUILD_RELEASE=202106111650.p0.git.29f92ef BUILD_VERSION=v4.5.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=5 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.5.0-202106111650.p0.git.29f92ef SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=29f92ef OS_GIT_VERSION=4.5.0-202106111650.p0.git.29f92ef-29f92ef SOURCE_DATE_EPOCH=1599854281 SOURCE_GIT_COMMIT=29f92ef409198fbb90ebd8db3ba801c4ed0f294d SOURCE_GIT_TAG=v3.11.0-853-g29f92ef40 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.5.0.20210611.170122
ENV __doozer=update BUILD_RELEASE=202106111650.p0.git.29f92ef BUILD_VERSION=v4.5.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=5 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.5.0-202106111650.p0.git.29f92ef SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=29f92ef OS_GIT_VERSION=4.5.0-202106111650.p0.git.29f92ef-29f92ef SOURCE_DATE_EPOCH=1599854281 SOURCE_GIT_COMMIT=29f92ef409198fbb90ebd8db3ba801c4ed0f294d SOURCE_GIT_TAG=v3.11.0-853-g29f92ef40 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="202106111650.p0.git.29f92ef" \
        io.openshift.build.commit.id="29f92ef409198fbb90ebd8db3ba801c4ed0f294d" \
        io.openshift.build.source-location="https://github.com/openshift/coredns" \
        io.openshift.build.commit.url="https://github.com/openshift/coredns/commit/29f92ef409198fbb90ebd8db3ba801c4ed0f294d" \
        version="v4.5.0"

