aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-01-22 16:30:41 +0100
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-01-22 16:32:28 +0100
commit227aefafa8995f7897f6b5818b3497d8eafe2d77 (patch)
tree6933a5d80fa38ddbf8ffb7779ca6ba7cde115423
parent79322e1eaabd39210dc855ca1e78f734c1790fc4 (diff)
Use non-root user in history
- use predefined 'nobody' user from temurin base image Issue-ID: PORTALNG-72 Change-Id: I6caad83211dd0fdcd159c4993c6ae744d36e699e 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 963540b..05c5377 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,6 +4,7 @@ WORKDIR /history
RUN ./gradlew assemble
FROM eclipse-temurin:17-jre-alpine
+USER nobody
ARG JAR_FILE=/history/app/build/libs/app.jar
COPY --from=builder ${JAR_FILE} app.jar
EXPOSE 9080