diff options
author | Pawel Wieczorek <p.wieczorek2@samsung.com> | 2020-04-10 09:52:45 +0200 |
---|---|---|
committer | Pawel Wieczorek <p.wieczorek2@samsung.com> | 2020-04-10 09:55:13 +0200 |
commit | 3cd858263d731f456a31051a51d915b55403377c (patch) | |
tree | d050a12c4761c68765d4d453e3a91c4d71aca609 | |
parent | d167c6d5069208023ef2f11068a83522a7714e9e (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>
-rw-r--r-- | deliveries/Dockerfile.sdk | 5 |
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 |