diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-01-22 16:37:01 +0100 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2024-01-22 16:37:01 +0100 |
commit | 908a5da9fee5d3633c76097e0eecf8ae280de169 (patch) | |
tree | d0e75b61d7994acf69b9bfff615dad543a4d9a1d | |
parent | e75aad44364533311e03c865bd00e95540bf5f34 (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-- | Dockerfile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 |