aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-01-22 16:37:01 +0100
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-01-22 16:37:01 +0100
commit908a5da9fee5d3633c76097e0eecf8ae280de169 (patch)
treed0e75b61d7994acf69b9bfff615dad543a4d9a1d
parente75aad44364533311e03c865bd00e95540bf5f34 (diff)
Use non-root user in preferences
- use predefined 'nobody' user from temurin image Issue-ID: PORTALNG-73 Change-Id: Ib9b125f0792874e619e36f6db5ae4dc58c43b7cc 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 45036bb..e1ff0cc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,6 +4,7 @@ WORKDIR /preferences
RUN ./gradlew assemble
FROM eclipse-temurin:17-jre-alpine
+USER nobody
ARG JAR_FILE=/preferences/app/build/libs/app-*.jar
COPY --from=builder ${JAR_FILE} app.jar
EXPOSE 9080