From ce34d843f7e16ecddc839ee9976b4652bfdde571 Mon Sep 17 00:00:00 2001 From: Sandeep Shah Date: Tue, 15 Sep 2020 15:46:01 -0500 Subject: [PATCH] update portal-app Dockerfile Change the ownership of /usr/local/tomcat/temp folder to portal:portal Issue-ID: PORTAL-1009 Signed-off-by: SandeepLinux Change-Id: I7a436d5aa96f391352089ad0b553624ae4b5fff8 --- deliveries/Dockerfile.portal | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.16.6