aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-03-01 12:54:20 +0100
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-03-01 12:54:20 +0100
commit7442acca84828844f4e733c7b8be8a3971632a78 (patch)
treee383a033c58da9b27626900e4efcb5978e50f25b
parentc3c2eec967891108459c45786f8e98a85004e678 (diff)
portal-ng pods run under root user
- use non-root 'nobody' user Issue-ID: PORTALNG-67 Change-Id: I9f5c90b1dc51565630309ce4f55fc7cfe8840145 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
-rw-r--r--Dockerfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index e52fa2b..6b0da69 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,6 +5,7 @@ WORKDIR /bff
RUN ./gradlew assemble
FROM eclipse-temurin:17-jre-alpine
+USER nobody
ARG JAR_FILE=/bff/app/build/libs/app.jar
COPY --from=builder ${JAR_FILE} app.jar
EXPOSE 9080