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
(from parent 1:
ae737cb
)
Migrate Dockerfile.portal to unprivileged user
24/104924/1
author
Pawel Wieczorek
<p.wieczorek2@samsung.com>
Mon, 30 Mar 2020 09:43:19 +0000
(11:43 +0200)
committer
Sunder Tattavarada
<statta@research.att.com>
Fri, 3 Apr 2020 16:48:44 +0000
(16:48 +0000)
Issue-ID: PORTAL-849
Change-Id: I3060de8beddcba03be45f19ce8cd1fd0e32e62f5
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
(cherry picked from commit
048ca4538f32b27667271d1a32f5a95b0731f1f9
)
deliveries/Dockerfile.portal
patch
|
blob
|
history
diff --git
a/deliveries/Dockerfile.portal
b/deliveries/Dockerfile.portal
index
f12a3e3
..
cce3ed0
100644
(file)
--- a/
deliveries/Dockerfile.portal
+++ b/
deliveries/Dockerfile.portal
@@
-41,6
+41,10
@@
COPY ${FE_DIR} ${PORTALCONTEXT}/public
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 /