X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=deliveries%2FDockerfile.portal;h=b92bfc149d8bcdec5a2b839c342be9ebb8c94915;hb=b87e50318bc8b11a065b6ba55b577442aefb20ba;hp=cce3ed09c5491c134ad49658d4903d11d9da1002;hpb=048ca4538f32b27667271d1a32f5a95b0731f1f9;p=portal.git 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