forked from openshift/cluster-authentication-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.rhel7
12 lines (11 loc) · 842 Bytes
/
Dockerfile.rhel7
1
2
3
4
5
6
7
8
9
10
11
12
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.17-openshift-4.10 AS builder
WORKDIR /go/src/github.com/openshift/cluster-authentication-operator
COPY . .
ENV GO_PACKAGE github.com/openshift/cluster-authentication-operator
RUN go build -ldflags "-X $GO_PACKAGE/pkg/version.versionFromGit=$(git describe --long --tags --abbrev=7 --match 'v[0-9]*')" -tags="ocp" -o authentication-operator ./cmd/authentication-operator
FROM registry.ci.openshift.org/ocp/4.10:base
COPY --from=builder /go/src/github.com/openshift/cluster-authentication-operator/authentication-operator /usr/bin/
COPY manifests /manifests
COPY vendor/github.com/openshift/api/operator/v1/0000_50_cluster-authentication-operator_01_config.crd.yaml /manifests/01_config.crd.yaml
ENTRYPOINT ["/usr/bin/authentication-operator"]
LABEL io.openshift.release.operator=true