From 57908e9c11f15f98af8dd0a4b94e3c5a245f7bd4 Mon Sep 17 00:00:00 2001 From: Piergiorgio Lucidi Date: Fri, 10 Jun 2022 17:09:39 +0200 Subject: [PATCH] Fix for content storage management #3 --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 74bef91..b2de9e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM tomcat:9.0.56-jdk11-openjdk ARG TOMCAT_DIR=/usr/local/tomcat ARG USERNAME=alfresco ARG USERID=33007 +ARG CONTENT_STORAGE_DIR=/act_data USER root @@ -22,4 +23,7 @@ COPY --chown=${USERNAME} activiti-license/*.* $TOMCAT_DIR/lib/ RUN chown ${USERNAME}:${USERNAME} -R ${TOMCAT_DIR} +RUN mkdir -p ${CONTENT_STORAGE_DIR} +RUN chown ${USERNAME}:${USERNAME} ${CONTENT_STORAGE_DIR} + USER ${USERNAME}