diff options
author | Sunder Tattavarada <statta@research.att.com> | 2020-04-06 19:14:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-06 19:14:38 +0000 |
commit | 2e8ba0751b32a08f33a7079afb335e4079ce7ba3 (patch) | |
tree | ef89b5a6b58b4e1c9f18c83a3bd2d90295811e63 | |
parent | cebacdbe5b97923a86c6f101b56df49e2a9fe590 (diff) | |
parent | 25a604f80ce90270ff7d104caff2fdd6948cbfa1 (diff) |
Merge "Migrate Dockerfile.portal to unprivileged user" into release-3.2.0
-rw-r--r-- | deliveries/Dockerfile.portal | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deliveries/Dockerfile.portal b/deliveries/Dockerfile.portal index f12a3e30..cce3ed09 100644 --- 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 / |