-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile.ui-distributed-tracing
More file actions
60 lines (43 loc) · 2.08 KB
/
Dockerfile.ui-distributed-tracing
File metadata and controls
60 lines (43 loc) · 2.08 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM registry.redhat.io/ubi9/nodejs-22:latest AS web-builder
WORKDIR /opt/app-root
USER 0
ENV HUSKY=0
COPY ui-distributed-tracing/web/package*.json web/
COPY ui-distributed-tracing/Makefile Makefile
RUN cd web && npm ci --omit=optional --ignore-scripts
COPY ui-distributed-tracing/web/ web/
RUN make build-frontend
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.25 as go-builder
WORKDIR /opt/app-root
COPY ui-distributed-tracing/Makefile Makefile
COPY ui-distributed-tracing/go.mod go.mod
COPY ui-distributed-tracing/go.sum go.sum
RUN make install-backend
COPY ui-distributed-tracing/cmd/ cmd/
COPY ui-distributed-tracing/pkg/ pkg/
ENV GOFLAGS='-mod=mod'
ENV GOEXPERIMENT=strictfipsruntime
ENV CGO_ENABLED=1
RUN make build-backend BUILD_OPTS="-tags strictfipsruntime"
FROM registry.redhat.io/ubi9/ubi-minimal:latest@sha256:c7d44146f826037f6873d99da479299b889473492d3c1ab8af86f08af04ec8a0
RUN mkdir /licenses
COPY ui-distributed-tracing/LICENSE /licenses/.
USER 1001
COPY --from=web-builder /opt/app-root/web/dist /opt/app-root/web/dist
COPY --from=go-builder /opt/app-root/plugin-backend /opt/app-root
ENTRYPOINT ["/opt/app-root/plugin-backend", "-static-path", "/opt/app-root/web/dist"]
ARG VERSION=v1.0.0
LABEL com.redhat.component="coo-distributed-tracing-console-plugin" \
name="cluster-observability-operator/distributed-tracing-console-plugin-rhel9" \
cpe="cpe:/a:redhat:cluster_observability_operator:1.4::el9" \
version="${VERSION}" \
release="${VERSION}" \
vendor="Red Hat, Inc." \
distribution-scope="public" \
url="https://github.com/openshift/distributed-tracing-console-plugin" \
summary="OpenShift console plugin to view and explore traces" \
io.openshift.tags="openshift,observability-ui,distributed tracing" \
io.k8s.display-name="OpenShift console distributed tracing plugin" \
io.k8s.description="OpenShift console plugin to view and explore traces" \
maintainer="Observability UI Team <team-observability-ui@redhat.com>" \
description="OpenShift console plugin to view and explore traces"