Change $TOMCATHOME/temp ownership for unprivileged user in SDK
Issue-ID: PORTAL-849
Change-Id: I4c437777fcaf0db337fc3a126f12788962777e49
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
diff --git a/deliveries/Dockerfile.sdk b/deliveries/Dockerfile.sdk
index 4757d8a..b85cf84 100644
--- a/deliveries/Dockerfile.sdk
+++ b/deliveries/Dockerfile.sdk
@@ -39,7 +39,10 @@
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