FROM openshift/golang-builder:1.12 AS builder
ENV __doozer=update BUILD_RELEASE=202006290519.p0 BUILD_VERSION=v4.3.28 OS_GIT_MAJOR=4 OS_GIT_MINOR=3 OS_GIT_PATCH=28 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.3.28-202006290519.p0 
ENV __doozer=merge OS_GIT_COMMIT=58203d1 OS_GIT_VERSION=4.3.28-202006290519.p0-58203d1 SOURCE_DATE_EPOCH=1563965622 SOURCE_GIT_COMMIT=58203d1a763764c7eec567473304e831946ab8c3 SOURCE_GIT_TAG=v0.0.0-alpha.0-5-g58203d1a SOURCE_GIT_URL=https://github.com/openshift/template-service-broker 
WORKDIR /go/src/github.com/openshift/template-service-broker
COPY . .
RUN make build --warn-undefined-variables

FROM openshift/ose-base:v4.3.28.20200629.051926
ENV __doozer=update BUILD_RELEASE=202006290519.p0 BUILD_VERSION=v4.3.28 OS_GIT_MAJOR=4 OS_GIT_MINOR=3 OS_GIT_PATCH=28 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.3.28-202006290519.p0 
ENV __doozer=merge OS_GIT_COMMIT=58203d1 OS_GIT_VERSION=4.3.28-202006290519.p0-58203d1 SOURCE_DATE_EPOCH=1563965622 SOURCE_GIT_COMMIT=58203d1a763764c7eec567473304e831946ab8c3 SOURCE_GIT_TAG=v0.0.0-alpha.0-5-g58203d1a SOURCE_GIT_URL=https://github.com/openshift/template-service-broker 
COPY --from=builder /go/src/github.com/openshift/template-service-broker/template-service-broker /usr/bin/
ENTRYPOINT ["/usr/bin/template-service-broker"]

LABEL \
        io.k8s.display-name="Template Service Broker" \
        io.k8s.description="Template Service Broker" \
        com.redhat.component="template-service-broker-container" \
        name="openshift/ose-template-service-broker" \
        io.openshift.tags="openshift, template-service-broker" \
        License="GPLv2+" \
        vendor="Red Hat" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        release="202006290519.p0" \
        io.openshift.build.commit.id="58203d1a763764c7eec567473304e831946ab8c3" \
        io.openshift.build.source-location="https://github.com/openshift/template-service-broker" \
        io.openshift.build.commit.url="https://github.com/openshift/template-service-broker/commit/58203d1a763764c7eec567473304e831946ab8c3" \
        version="v4.3.28"

