From 3cd858263d731f456a31051a51d915b55403377c Mon Sep 17 00:00:00 2001
From: Pawel Wieczorek
Date: Fri, 10 Apr 2020 09:52:45 +0200
Subject: Change $TOMCATHOME/temp ownership for unprivileged user in SDK
Issue-ID: PORTAL-849
Change-Id: I4c437777fcaf0db337fc3a126f12788962777e49
Signed-off-by: Pawel Wieczorek
---
deliveries/Dockerfile.sdk | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/deliveries/Dockerfile.sdk b/deliveries/Dockerfile.sdk
index 4757d8a4..b85cf846 100644
--- a/deliveries/Dockerfile.sdk
+++ b/deliveries/Dockerfile.sdk
@@ -39,7 +39,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
+RUN addgroup -g 1000 -S portal && \
+ adduser -u 1000 -S portal -G portal && \
+ mkdir -p ${TOMCATHOME}/temp && \
+ chown portal:portal ${TOMCATHOME}/temp
USER portal
# Switch back to root
--
cgit 1.2.3-korg