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:
ae737cb
)
Migrate Dockerfile.sdk to unprivileged user
25/104925/1
author
Pawel Wieczorek
<p.wieczorek2@samsung.com>
Mon, 30 Mar 2020 09:48:26 +0000
(11:48 +0200)
committer
Sunder Tattavarada
<statta@research.att.com>
Fri, 3 Apr 2020 16:48:58 +0000
(16:48 +0000)
Issue-ID: PORTAL-849
Change-Id: If0cf112cd627c431e4ca08329e0da3ee5d8b8bdc
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
(cherry picked from commit
59ad77a586b7b00396fba2ad0273b595e98676a6
)
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 /