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