forked from redhat-cne/hw-event-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.local
26 lines (21 loc) · 1.31 KB
/
Dockerfile.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Build hw-event-proxy binaries
FROM quay.io/redhat-cne/openshift-origin-release:golang-1.17 AS go-builder
WORKDIR /go/src/github.com/redhat-cne/hw-event-proxy
COPY ./hw-event-proxy ./hw-event-proxy
# Install dependencies for message-parser
FROM registry.access.redhat.com/ubi8/python-39
COPY /scripts/entrypoint.sh /
WORKDIR /message-parser
COPY ./message-parser .
RUN pip3 install -r requirements.txt
COPY --from=go-builder /go/src/github.com/redhat-cne/hw-event-proxy/hw-event-proxy/build/libdl.so.2 /lib64/
COPY --from=go-builder /go/src/github.com/redhat-cne/hw-event-proxy/hw-event-proxy/build/libpthread.so.0 /lib64/
COPY --from=go-builder /go/src/github.com/redhat-cne/hw-event-proxy/hw-event-proxy/build/libc.so.6 /lib64/
COPY --from=go-builder /go/src/github.com/redhat-cne/hw-event-proxy/hw-event-proxy/build/ld-linux-x86-64.so.2 /lib64/
COPY --from=go-builder /go/src/github.com/redhat-cne/hw-event-proxy/hw-event-proxy/build/librt.so.1 /lib64/
COPY --from=go-builder /go/src/github.com/redhat-cne/hw-event-proxy/hw-event-proxy/build/hw-event-proxy /
LABEL io.k8s.display-name="Hw Event Proxy" \
io.k8s.description="This is a component of OpenShift Container Platform for handling hardware events." \
io.openshift.tags="openshift" \
maintainer="Jack Ding <jacding@redhat.com>"
ENTRYPOINT ["/entrypoint.sh"]