commit | 2e8ba0751b32a08f33a7079afb335e4079ce7ba3 | [log] [tgz] |
---|---|---|
author | Sunder Tattavarada <statta@research.att.com> | Mon Apr 06 19:14:38 2020 +0000 |
committer | Gerrit Code Review <gerrit@onap.org> | Mon Apr 06 19:14:38 2020 +0000 |
tree | ef89b5a6b58b4e1c9f18c83a3bd2d90295811e63 | |
parent | cebacdbe5b97923a86c6f101b56df49e2a9fe590 [diff] | |
parent | 25a604f80ce90270ff7d104caff2fdd6948cbfa1 [diff] |
Merge "Migrate Dockerfile.portal to unprivileged user" into release-3.2.0
diff --git a/deliveries/Dockerfile.portal b/deliveries/Dockerfile.portal index f12a3e3..cce3ed0 100644 --- a/deliveries/Dockerfile.portal +++ b/deliveries/Dockerfile.portal
@@ -41,6 +41,10 @@ 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 /