FROM openshift/golang-builder:1.12 AS builder
ENV SOURCE_GIT_COMMIT=d3065e59ce948f10364d0dd88cb70b860ec65ee2 SOURCE_GIT_TAG=v0.0.0-alpha.0-27-gd3065e59 SOURCE_GIT_URL=https://github.com/openshift/oauth-server SOURCE_DATE_EPOCH=1576141709 BUILD_VERSION=v4.3.3 BUILD_RELEASE=202002171705
WORKDIR /go/src/github.com/openshift/oauth-server
COPY . .
RUN make build --warn-undefined-variables

FROM openshift/ose-base:v4.3.3.20200217.170535
ENV SOURCE_GIT_COMMIT=d3065e59ce948f10364d0dd88cb70b860ec65ee2 SOURCE_GIT_TAG=v0.0.0-alpha.0-27-gd3065e59 SOURCE_GIT_URL=https://github.com/openshift/oauth-server SOURCE_DATE_EPOCH=1576141709 BUILD_VERSION=v4.3.3 BUILD_RELEASE=202002171705
COPY --from=builder /go/src/github.com/openshift/oauth-server/oauth-server /usr/bin/
ENTRYPOINT ["/usr/bin/oauth-server"]

LABEL \
        io.k8s.display-name="OpenShift OAuth Server" \
        io.k8s.description="This is a component of OpenShift and enables cluster authentication" \
        com.redhat.component="oauth-server-container" \
        name="openshift/ose-oauth-server" \
        io.openshift.tags="openshift, oauth-server" \
        version="v4.3.3" \
        release="202002171705" \
        io.openshift.build.commit.id="d3065e59ce948f10364d0dd88cb70b860ec65ee2" \
        io.openshift.build.source-location="https://github.com/openshift/oauth-server" \
        io.openshift.build.commit.url="https://github.com/openshift/oauth-server/commit/d3065e59ce948f10364d0dd88cb70b860ec65ee2"

