Skip to content

Commit 18fb808

Browse files
Only image
1 parent 10e5e9e commit 18fb808

1 file changed

Lines changed: 36 additions & 36 deletions

File tree

Dockerfile

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
# Builder image
22
FROM registry.access.redhat.com/ubi9/nodejs-22:latest AS builder
33

4-
USER 1001
5-
COPY --chown=1001 . .
6-
RUN npm install -g npm@9
7-
RUN npm clean-install --ignore-scripts && npm run build && npm run dist
8-
9-
# Runner image
10-
FROM registry.access.redhat.com/ubi9/nodejs-22-minimal:latest
11-
12-
# Add ps package to allow liveness probe for k8s cluster
13-
# Add tar package to allow copying files with kubectl scp
14-
USER 0
15-
RUN microdnf -y install tar procps-ng && microdnf clean all
16-
17-
USER 1001
18-
19-
LABEL name="trustify/trustify-ui" \
20-
description="Trustify - User Interface" \
21-
help="For more information visit https://trustification.github.io/" \
22-
license="Apache License 2.0" \
23-
maintainer="carlosthe19916@gmail.com" \
24-
summary="Trustify - User Interface" \
25-
url="https://ghcr.io/trustification/trustify-ui" \
26-
usage="podman run -p 80 -v trustification/trustify-ui:latest" \
27-
io.k8s.display-name="trustify-ui" \
28-
io.k8s.description="Trustify - User Interface" \
29-
io.openshift.expose-services="80:http" \
30-
io.openshift.tags="operator,trustification,trustify,ui,nodejs22" \
31-
io.openshift.min-cpu="100m" \
32-
io.openshift.min-memory="350Mi"
33-
34-
COPY --from=builder /opt/app-root/src/dist /opt/app-root/dist/
35-
36-
ENV DEBUG=1
37-
38-
WORKDIR /opt/app-root/dist
39-
ENTRYPOINT ["./entrypoint.sh"]
4+
# USER 1001
5+
# COPY --chown=1001 . .
6+
# RUN npm install -g npm@9
7+
# RUN npm clean-install --ignore-scripts && npm run build && npm run dist
8+
9+
# # Runner image
10+
# FROM registry.access.redhat.com/ubi9/nodejs-22-minimal:latest
11+
12+
# # Add ps package to allow liveness probe for k8s cluster
13+
# # Add tar package to allow copying files with kubectl scp
14+
# USER 0
15+
# RUN microdnf -y install tar procps-ng && microdnf clean all
16+
17+
# USER 1001
18+
19+
# LABEL name="trustify/trustify-ui" \
20+
# description="Trustify - User Interface" \
21+
# help="For more information visit https://trustification.github.io/" \
22+
# license="Apache License 2.0" \
23+
# maintainer="carlosthe19916@gmail.com" \
24+
# summary="Trustify - User Interface" \
25+
# url="https://ghcr.io/trustification/trustify-ui" \
26+
# usage="podman run -p 80 -v trustification/trustify-ui:latest" \
27+
# io.k8s.display-name="trustify-ui" \
28+
# io.k8s.description="Trustify - User Interface" \
29+
# io.openshift.expose-services="80:http" \
30+
# io.openshift.tags="operator,trustification,trustify,ui,nodejs22" \
31+
# io.openshift.min-cpu="100m" \
32+
# io.openshift.min-memory="350Mi"
33+
34+
# COPY --from=builder /opt/app-root/src/dist /opt/app-root/dist/
35+
36+
# ENV DEBUG=1
37+
38+
# WORKDIR /opt/app-root/dist
39+
# ENTRYPOINT ["./entrypoint.sh"]

0 commit comments

Comments
 (0)