-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathDockerfile.cpoperator
More file actions
13 lines (12 loc) · 965 Bytes
/
Dockerfile.cpoperator
File metadata and controls
13 lines (12 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
# Image build must be run from repository root directory
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.22-openshift-4.17 as builder
RUN mkdir -p /go/src/github.com/openshift/ibm-roks-toolkit
WORKDIR /go/src/github.com/openshift/ibm-roks-toolkit
COPY . .
RUN go build -mod=vendor -o ./bin/control-plane-operator ./cmd/control-plane-operator/main.go
# Base image on release is pulled from https://github.com/openshift/release/blob/master/ci-operator/config/openshift/ibm-roks-toolkit/openshift-ibm-roks-toolkit-release-4.*.yaml
# roks-toolkit-base image stream is located here https://github.com/openshift/release/blob/master/clusters/app.ci/supplemental-ci-images/ibm-roks-toolkit-base/ibm-roks-toolkit-base.yaml
FROM quay.io/openshift/origin-base:latest
COPY --from=builder /go/src/github.com/openshift/ibm-roks-toolkit/bin/control-plane-operator /usr/bin/control-plane-operator
USER 1000:1000
ENTRYPOINT /usr/bin/control-plane-operator