Code Review
/
portal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
9ddf281
)
Merge "Migrate Dockerfile.widgetms to unprivileged user" into release-3.2.0
author
Sunder Tattavarada
<statta@research.att.com>
Mon, 6 Apr 2020 19:12:33 +0000
(19:12 +0000)
committer
Gerrit Code Review
<gerrit@onap.org>
Mon, 6 Apr 2020 19:12:33 +0000
(19:12 +0000)
deliveries/Dockerfile.widgetms
patch
|
blob
|
history
diff --git
a/deliveries/Dockerfile.widgetms
b/deliveries/Dockerfile.widgetms
index
82a2e4c
..
8f4b107
100644
(file)
--- a/
deliveries/Dockerfile.widgetms
+++ b/
deliveries/Dockerfile.widgetms
@@
-14,7
+14,9
@@
RUN sh -c 'touch /app.jar'
# Launch script
COPY start-wms.sh /
+# Switch to unprivileged user
RUN addgroup -g 1000 -S portal && adduser -u 1000 -S portal -G portal && mkdir logs / && chown -R portal:portal /start-wms.sh /tmp /etc/ssl/certs/java /logs && chmod -R 755 /start-wms.sh /etc/ssl/certs/java /logs /tmp
+USER portal
# Define default command
CMD /start-wms.sh