summaryrefslogtreecommitdiffstats
path: root/deliveries/Dockerfile.sdk
diff options
context:
space:
mode:
Diffstat (limited to 'deliveries/Dockerfile.sdk')
-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 /