forked from openshift/troubleshooting-panel-console-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
35 lines (22 loc) · 852 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
29
30
31
32
33
34
35
# This Dockerfile is used for local testing of images. All images should be available for public use
FROM registry.access.redhat.com/ubi9/nodejs-18:latest AS web-builder
WORKDIR /opt/app-root
USER 0
COPY web/package*.json web/
COPY Makefile Makefile
RUN make install-frontend
COPY web/ web/
RUN make build-frontend
FROM quay.io/redhat-cne/openshift-origin-release:rhel-9-golang-1.22-openshift-4.17 as go-builder
WORKDIR /opt/app-root
COPY Makefile Makefile
COPY go.mod go.mod
COPY go.sum go.sum
RUN go mod download
COPY cmd/ cmd/
COPY pkg/ pkg/
RUN make build-backend
FROM registry.access.redhat.com/ubi9/ubi-minimal
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"]