summaryrefslogtreecommitdiffstats
path: root/deliveries
diff options
context:
space:
mode:
authorSunder Tattavarada <statta@research.att.com>2020-04-06 19:12:52 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-06 19:12:52 +0000
commitcebacdbe5b97923a86c6f101b56df49e2a9fe590 (patch)
tree4221aa3bf1bcdcfd97071e47b4e8c0401af51c9d /deliveries
parenta72e7c1fabd448068cd3dbe08a22fa491e81eafc (diff)
parent7d9d55219ce19988c84522cbc9b17eaa10a9dc00 (diff)
Merge "Migrate Dockerfile.sdk to unprivileged user" into release-3.2.0
Diffstat (limited to 'deliveries')
-rw-r--r--deliveries/Dockerfile.sdk4
1 files changed, 4 insertions, 0 deletions
diff --git a/deliveries/Dockerfile.sdk b/deliveries/Dockerfile.sdk
index 5f96aaad..4757d8a4 100644
--- 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 /