-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathDockerfile.art
More file actions
57 lines (40 loc) · 1.58 KB
/
Copy pathDockerfile.art
File metadata and controls
57 lines (40 loc) · 1.58 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
FROM registry.ci.openshift.org/ocp/builder:rhel-9-base-nodejs-openshift-5.0 AS web-builder
WORKDIR /opt/app-root
USER 0
ENV HUSKY=0
COPY web/package*.json web/
COPY Makefile Makefile
RUN install-frontend-ci
COPY web/ web/
RUN make build-frontend
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 AS go-builder
WORKDIR /opt/app-root
COPY Makefile Makefile
COPY go.mod go.mod
COPY go.sum go.sum
RUN make install-backend
COPY config/ config/
COPY cmd/ cmd/
COPY pkg/ pkg/
ENV GOEXPERIMENT=strictfipsruntime
ENV CGO_ENABLED=1
RUN make build-backend BUILD_OPTS="-tags strictfipsruntime"
FROM registry.ci.openshift.org/ocp/5.0:base-rhel9
RUN mkdir /licenses
COPY 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
COPY config /opt/app-root/config
ENTRYPOINT ["/opt/app-root/plugin-backend", "-config-path", "/opt/app-root/config", "-static-path", "/opt/app-root/web/dist"]
ARG VERSION=v6.2.0
LABEL version="${VERSION}" \
release="${VERSION}" \
vendor="Red Hat, Inc." \
url="https://github.com/openshift/logging-view-plugin" \
summary="OpenShift console plugin to view and explore logs" \
io.openshift.tags="openshift,observability-ui,logging" \
io.k8s.display-name="OpenShift console logging plugin" \
io.k8s.description="OpenShift console plugin to view and explore logs" \
maintainer="Observability UI Team <team-observability-ui@redhat.com>" \
description="OpenShift console plugin to view and explore logs"