-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathDockerfile
More file actions
12 lines (11 loc) · 862 Bytes
/
Dockerfile
File metadata and controls
12 lines (11 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.25-openshift-4.22 AS builder
WORKDIR /go/src/github.com/openshift/machine-api-provider-aws
COPY . .
# VERSION env gets set in the openshift/release image and refers to the golang version, which interfers with our own
RUN unset VERSION \
&& GOPROXY=off NO_DOCKER=1 make build && \
gzip /go/src/github.com/openshift/machine-api-provider-aws/openshift-tests/bin/machine-api-provider-aws-tests-ext
FROM registry.ci.openshift.org/openshift/origin-v4.0:base
COPY --from=builder /go/src/github.com/openshift/machine-api-provider-aws/bin/machine-controller-manager /
COPY --from=builder /go/src/github.com/openshift/machine-api-provider-aws/bin/termination-handler /
COPY --from=builder /go/src/github.com/openshift/machine-api-provider-aws/openshift-tests/bin/machine-api-provider-aws-tests-ext.gz /