Code Review
/
portal-ng
/
preferences.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e75aad4
)
Use non-root user in preferences
67/137067/1
author
Fiete Ostkamp
<Fiete.Ostkamp@telekom.de>
Mon, 22 Jan 2024 15:37:01 +0000
(16:37 +0100)
committer
Fiete Ostkamp
<Fiete.Ostkamp@telekom.de>
Mon, 22 Jan 2024 15:37:01 +0000
(16:37 +0100)
- use predefined 'nobody' user from temurin image
Issue-ID: PORTALNG-73
Change-Id: Ib9b125f0792874e619e36f6db5ae4dc58c43b7cc
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Dockerfile
patch
|
blob
|
history
diff --git
a/Dockerfile
b/Dockerfile
index
45036bb
..
e1ff0cc
100644
(file)
--- 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