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=a98ed7f OS_GIT_VERSION=4.3.19-202005041055-a98ed7f SOURCE_DATE_EPOCH=1587048342 SOURCE_GIT_COMMIT=a98ed7f79eb31b4e85149d4d1c9cc152df55fcaf SOURCE_GIT_TAG=a98ed7f79 SOURCE_GIT_URL=https://github.com/openshift/openshift-apiserver 
WORKDIR /go/src/github.com/openshift/openshift-apiserver
COPY . .
RUN make build --warn-undefined-variables

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=a98ed7f OS_GIT_VERSION=4.3.19-202005041055-a98ed7f SOURCE_DATE_EPOCH=1587048342 SOURCE_GIT_COMMIT=a98ed7f79eb31b4e85149d4d1c9cc152df55fcaf SOURCE_GIT_TAG=a98ed7f79 SOURCE_GIT_URL=https://github.com/openshift/openshift-apiserver 
COPY --from=builder /go/src/github.com/openshift/openshift-apiserver/openshift-apiserver /usr/bin/
ENTRYPOINT ["/usr/bin/openshift-apiserver"]

LABEL \
        io.k8s.display-name="OpenShift API Server Command" \
        io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \
        io.openshift.tags="openshift,openshift-apiserver" \
        name="openshift/ose-openshift-apiserver" \
        com.redhat.component="ose-openshift-apiserver-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="openshift-apiserver" \
        version="v4.3.19" \
        release="202005041055" \
        io.openshift.build.commit.id="a98ed7f79eb31b4e85149d4d1c9cc152df55fcaf" \
        io.openshift.build.source-location="https://github.com/openshift/openshift-apiserver" \
        io.openshift.build.commit.url="https://github.com/openshift/openshift-apiserver/commit/a98ed7f79eb31b4e85149d4d1c9cc152df55fcaf"

