Code Review
/
portal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
048ca45
)
Migrate Dockerfile.sdk to unprivileged user
71/104671/2
author
Pawel Wieczorek
<p.wieczorek2@samsung.com>
Mon, 30 Mar 2020 09:48:26 +0000
(11:48 +0200)
committer
Pawel Wieczorek
<p.wieczorek2@samsung.com>
Thu, 2 Apr 2020 09:25:14 +0000
(11:25 +0200)
Issue-ID: PORTAL-849
Change-Id: If0cf112cd627c431e4ca08329e0da3ee5d8b8bdc
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
deliveries/Dockerfile.sdk
patch
|
blob
|
history
diff --git
a/deliveries/Dockerfile.sdk
b/deliveries/Dockerfile.sdk
index
5f96aaa
..
4757d8a
100644
(file)
--- a/
deliveries/Dockerfile.sdk
+++ b/
deliveries/Dockerfile.sdk
@@
-38,6
+38,10
@@
RUN cd ${SDKCONTEXT} && unzip -q *.war && rm *.war
VOLUME ${TOMCATHOME}/logs
+# Switch to unprivileged user
+RUN addgroup -g 1000 -S portal && adduser -u 1000 -S portal -G portal
+USER portal
+
# Switch back to root
WORKDIR /