summaryrefslogtreecommitdiffstats
path: root/deliveries
diff options
context:
space:
mode:
authorPawel Wieczorek <p.wieczorek2@samsung.com>2020-04-10 09:52:45 +0200
committerPawel Wieczorek <p.wieczorek2@samsung.com>2020-04-10 09:55:13 +0200
commit3cd858263d731f456a31051a51d915b55403377c (patch)
treed050a12c4761c68765d4d453e3a91c4d71aca609 /deliveries
parentd167c6d5069208023ef2f11068a83522a7714e9e (diff)
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>
Diffstat (limited to 'deliveries')
-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