FROM openshift/golang-builder:1.12 AS builder
ENV SOURCE_GIT_COMMIT=b39c1b0e0dfe855adcba140fbca625c43cfcdfe4 SOURCE_DATE_EPOCH=1578400068 BUILD_VERSION=v4.3.0 SOURCE_GIT_URL=https://github.com/openshift/ptp-operator SOURCE_GIT_TAG=b39c1b0 BUILD_RELEASE=202001211731
WORKDIR /go/src/github.com/openshift/ptp-operator
COPY . .
ENV GO111MODULE=off
RUN make

FROM openshift/ose-base:v4.3.0.20200121.173126
ENV SOURCE_GIT_COMMIT=b39c1b0e0dfe855adcba140fbca625c43cfcdfe4 SOURCE_DATE_EPOCH=1578400068 BUILD_VERSION=v4.3.0 SOURCE_GIT_URL=https://github.com/openshift/ptp-operator SOURCE_GIT_TAG=b39c1b0 BUILD_RELEASE=202001211731
COPY --from=builder /go/src/github.com/openshift/ptp-operator/build/_output/bin/ptp-operator /usr/local/bin/
COPY --from=builder /go/src/github.com/openshift/ptp-operator/manifests /manifests
COPY bindata /bindata


ENTRYPOINT ["/usr/local/bin/ptp-operator"]

LABEL \
        io.k8s.description="This is a component that manages cluster PTP configuration." \
        com.redhat.component="ose-ptp-operator-container" \
        maintainer="Multus Team <multus-dev@redhat.com>" \
        name="openshift/ose-ptp-operator" \
        com.redhat.delivery.appregistry="false" \
        io.k8s.display-name="OpenShift ptp-operator" \
        io.openshift.build.source-location="https://github.com/openshift/ptp-operator" \
        io.openshift.build.commit.url="https://github.com/openshift/ptp-operator/commit/b39c1b0e0dfe855adcba140fbca625c43cfcdfe4" \
        version="v4.3.0" \
        io.openshift.build.commit.id="b39c1b0e0dfe855adcba140fbca625c43cfcdfe4" \
        release="202001211731" \
        io.openshift.tags="openshift,ptp"

