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
diff --git a/deliveries/Dockerfile.portal b/deliveries/Dockerfile.portal
index cce3ed0..b92bfc1 100644
--- a/deliveries/Dockerfile.portal
+++ b/deliveries/Dockerfile.portal
@@ -40,12 +40,13 @@
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