FROM openshift/golang-builder:1.11 AS builder
ENV SOURCE_GIT_COMMIT=12ee15d4af457f10a534da052afa874185b45b57 SOURCE_DATE_EPOCH=1569013961 BUILD_VERSION=v4.1.18 SOURCE_GIT_URL=https://github.com/openshift/ose SOURCE_GIT_TAG=v4.1.18-201909201709 BUILD_RELEASE=201909201915
WORKDIR /go/src/github.com/openshift/origin
COPY . .
RUN make build WHAT=cmd/template-service-broker; \
    mkdir -p /tmp/build; \
    cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/template-service-broker /tmp/build/template-service-broker

FROM openshift/ose-base:v4.1.18.20190920.191508
ENV SOURCE_GIT_COMMIT=12ee15d4af457f10a534da052afa874185b45b57 SOURCE_DATE_EPOCH=1569013961 BUILD_VERSION=v4.1.18 SOURCE_GIT_URL=https://github.com/openshift/ose SOURCE_GIT_TAG=v4.1.18-201909201709 BUILD_RELEASE=201909201915
COPY --from=builder /tmp/build/template-service-broker /usr/bin/
CMD [ "/usr/bin/template-service-broker" ]

LABEL \
        io.k8s.description="Template Service Broker" \
        com.redhat.component="template-service-broker-container" \
        vendor="Red Hat" \
        name="openshift/ose-template-service-broker" \
        License="GPLv2+" \
        io.k8s.display-name="Template Service Broker" \
        io.openshift.build.source-location="https://github.com/openshift/ose" \
        io.openshift.build.commit.url="https://github.com/openshift/ose/commit/12ee15d4af457f10a534da052afa874185b45b57" \
        version="v4.1.18" \
        io.openshift.build.commit.id="12ee15d4af457f10a534da052afa874185b45b57" \
        release="201909201915" \
        io.openshift.tags="openshift"

