forked from redhat-cne/cloud-event-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
24 lines (18 loc) · 873 Bytes
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Used by quay.io to trigger developer builds
FROM quay.io/redhat-cne/openshift-origin-release:golang-1.19-openshift-4.14 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 quay.io/redhat-cne/openshift-origin-release:base-4.14 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"]