-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile.dev
28 lines (22 loc) · 960 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
25
26
27
28
# Used by quay.io to trigger developer builds
FROM quay.io/redhat-cne/openshift-origin-release:rhel-9-golang-1.20-openshift-4.15 AS go-builder
ENV GO111MODULE=off
ENV CGO_ENABLED=1
ENV COMMON_GO_ARGS=-race
ENV GOOS=linux
COPY ./scripts /scripts
WORKDIR /go/src/github.com/redhat-cne/hw-event-proxy
COPY ./hw-event-proxy ./hw-event-proxy
RUN /scripts/build-go.sh
# Install dependencies for message-parser
FROM registry.access.redhat.com/ubi9/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/hw-event-proxy /
LABEL io.k8s.display-name="Bare Metal Event Relay" \
io.k8s.description="This is a component of OpenShift Container Platform for handling hardware events." \
io.openshift.tags="openshift" \
maintainer="Jack Ding <[email protected]>"
ENTRYPOINT ["/entrypoint.sh"]