diff options
author | Sandeep Shah <sandeeplinux1068@gmail.com> | 2020-09-15 15:46:01 -0500 |
---|---|---|
committer | Sandeep Shah <sandeeplinux1068@gmail.com> | 2020-09-15 15:46:01 -0500 |
commit | ce34d843f7e16ecddc839ee9976b4652bfdde571 (patch) | |
tree | b23ee7e52ff0c5dd536854249f75d8f9eda59007 | |
parent | 0d2d51e2fbcb7b90b62be1ffa0c462a78b1fc166 (diff) |
update portal-app Dockerfile
Change the ownership of /usr/local/tomcat/temp
folder to portal:portal
Issue-ID: PORTAL-1009
Signed-off-by: SandeepLinux <Sandeep.Shah@att.com>
Change-Id: I7a436d5aa96f391352089ad0b553624ae4b5fff8
-rw-r--r-- | deliveries/Dockerfile.portal | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/deliveries/Dockerfile.portal b/deliveries/Dockerfile.portal index cce3ed09..b92bfc14 100644 --- a/deliveries/Dockerfile.portal +++ b/deliveries/Dockerfile.portal @@ -40,12 +40,13 @@ RUN cd ${PORTALCONTEXT} && unzip -q *.war && rm *.war COPY ${FE_DIR} ${PORTALCONTEXT}/public VOLUME ${TOMCATHOME}/logs +RUN mkdir -p ${TOMCATHOME}/temp # Switch to unprivileged user RUN addgroup -g 1000 -S portal && adduser -u 1000 -S portal -G portal +RUN chown portal:portal ${TOMCATHOME}/temp USER portal -# Switch back to root WORKDIR / # Define commonly used ENV variables |