summaryrefslogtreecommitdiffstats
path: root/deliveries/Dockerfile.sdk
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2020-04-10 09:52:45 +0200
committerSunder Tattavarada <statta@research.att.com>2020-04-10 13:37:24 +0000
commit5d6efffa8ea241da2992de1c62eab5e8676a7dd8 (patch)
tree89f77408d1ac56006ace4e2c798cf706619ed83f /deliveries/Dockerfile.sdk
parent5c7d5cc2fd56ae3edc69caf45c0250751300ce79 (diff)
Change $TOMCATHOME/temp ownership for unprivileged user in SDK3.2.0
Issue-ID: PORTAL-849 Change-Id: I4c437777fcaf0db337fc3a126f12788962777e49 Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
Diffstat (limited to 'deliveries/Dockerfile.sdk')
-rw-r--r--deliveries/Dockerfile.sdk5
1 files changed, 4 insertions, 1 deletions
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