forked from redhat-cne/cloud-event-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (17 loc) · 812 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.16-openshift-4.10 AS builder
ENV GO111MODULE=off
ENV CGO_ENABLED=1
ENV COMMON_GO_ARGS=-race
ENV GOOS=linux
ENV GOPATH=/go
WORKDIR /go/src/github.com/redhat-cne/cloud-event-proxy
COPY . .
RUN hack/build-go.sh
FROM registry.ci.openshift.org/ocp/4.10:base AS bin
COPY --from=builder /go/src/github.com/redhat-cne/cloud-event-proxy/build/cloud-event-proxy /
COPY --from=builder /go/src/github.com/redhat-cne/cloud-event-proxy/plugins/*.so /plugins/
LABEL io.k8s.display-name="Cloud Event Proxy" \
io.k8s.description="This is a component of OpenShift Container Platform and provides a side car to handle cloud events." \
io.openshift.tags="openshift" \
maintainer="Aneesh Puttur <[email protected]>"
ENTRYPOINT ["./cloud-event-proxy"]