forked from konveyor/tackle2-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 loc) · 1.31 KB
/
Dockerfile
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
# Builder image
FROM registry.access.redhat.com/ubi9/nodejs-18:latest as builder
USER 1001
COPY --chown=1001 . .
RUN npm clean-install && npm run build && npm run dist
# Runner image
FROM registry.access.redhat.com/ubi9/nodejs-18-minimal:latest
# Add ps package to allow liveness probe for k8s cluster
# Add tar package to allow copying files with kubectl scp
USER 0
RUN microdnf -y install tar procps-ng && microdnf clean all
USER 1001
LABEL name="konveyor/tackle2-ui" \
description="Konveyor for Tackle - User Interface" \
help="For more information visit https://konveyor.io" \
license="Apache License 2.0" \
maintainer="[email protected],[email protected]" \
summary="Konveyor for Tackle - User Interface" \
url="https://quay.io/konveyor/tackle2-ui" \
usage="podman run -p 80 -v konveyor/tackle2-ui:latest" \
com.redhat.component="konveyor-tackle2-ui-container" \
io.k8s.display-name="tackle2-ui" \
io.k8s.description="Konveyor for Tackle - User Interface" \
io.openshift.expose-services="80:http" \
io.openshift.tags="operator,konveyor,ui,nodejs18" \
io.openshift.min-cpu="100m" \
io.openshift.min-memory="350Mi"
COPY --from=builder /opt/app-root/src/dist /opt/app-root/dist/
ENV DEBUG=1
WORKDIR /opt/app-root/dist
ENTRYPOINT ["./entrypoint.sh"]