diff --git a/docker-jans-auth-server/Dockerfile b/docker-jans-auth-server/Dockerfile index 5d66799b819..bacef4e943a 100644 --- a/docker-jans-auth-server/Dockerfile +++ b/docker-jans-auth-server/Dockerfile @@ -290,7 +290,8 @@ RUN chmod -R g=u ${JETTY_BASE}/jans-auth/custom \ && chown -R 1000:0 /opt/prometheus \ && chown 1000:0 ${JETTY_BASE}/jans-auth/webapps/jans-auth.xml \ && chown -R 1000:0 ${JETTY_HOME}/temp \ - && chown -R 1000:0 ${JETTY_BASE}/jans-auth/_libs + && chown -R 1000:0 ${JETTY_BASE}/jans-auth/_libs \ + && chown -R 1000:0 /app/templates USER 1000 diff --git a/docker-jans-fido2/Dockerfile b/docker-jans-fido2/Dockerfile index bab86f7852d..39e22e00a86 100644 --- a/docker-jans-fido2/Dockerfile +++ b/docker-jans-fido2/Dockerfile @@ -243,7 +243,8 @@ RUN chmod 664 ${JETTY_BASE}/jans-fido2/resources/log4j2.xml \ && chown -R 1000:0 /usr/share/java \ && chown -R 1000:0 /opt/prometheus \ && chown 1000:0 ${JETTY_BASE}/jans-fido2/webapps/jans-fido2.xml \ - && chown -R 1000:0 ${JETTY_HOME}/temp + && chown -R 1000:0 ${JETTY_HOME}/temp \ + && chown -R 1000:0 /app/templates USER 1000 diff --git a/docker-jans-kc-scheduler/Dockerfile b/docker-jans-kc-scheduler/Dockerfile index 79e977cd36c..6af6de15d85 100644 --- a/docker-jans-kc-scheduler/Dockerfile +++ b/docker-jans-kc-scheduler/Dockerfile @@ -160,7 +160,8 @@ RUN adduser -s /bin/sh -h /home/1000 -D -G root -u 1000 jans RUN chmod -R g=u /etc/certs \ && chmod -R g=u /etc/jans \ && chmod 664 /opt/java/lib/security/cacerts \ - && chown -R 1000:0 /opt/kc-scheduler + && chown -R 1000:0 /opt/kc-scheduler \ + && chown -R 1000:0 /app/templates USER 1000 diff --git a/docker-jans-keycloak-link/Dockerfile b/docker-jans-keycloak-link/Dockerfile index bd77b7f94b1..c934ad88811 100644 --- a/docker-jans-keycloak-link/Dockerfile +++ b/docker-jans-keycloak-link/Dockerfile @@ -237,7 +237,8 @@ RUN chmod 664 ${JETTY_BASE}/jans-keycloak-link/resources/log4j2.xml \ && chown -R 1000:0 /opt/prometheus \ && chown 1000:0 ${JETTY_BASE}/jans-keycloak-link/webapps/jans-keycloak-link.xml \ && chown -R 1000:0 /var/jans/cr-snapshots \ - && chown -R 1000:0 ${JETTY_HOME}/temp + && chown -R 1000:0 ${JETTY_HOME}/temp \ + && chown -R 1000:0 /app/templates USER 1000 diff --git a/docker-jans-link/Dockerfile b/docker-jans-link/Dockerfile index e24f91d95c5..6b62e6cd1a3 100644 --- a/docker-jans-link/Dockerfile +++ b/docker-jans-link/Dockerfile @@ -237,7 +237,8 @@ RUN chmod 664 ${JETTY_BASE}/jans-link/resources/log4j2.xml \ && chown -R 1000:0 /opt/prometheus \ && chown 1000:0 ${JETTY_BASE}/jans-link/webapps/jans-link.xml \ && chown -R 1000:0 /var/jans/link-snapshots \ - && chown -R 1000:0 ${JETTY_HOME}/temp + && chown -R 1000:0 ${JETTY_HOME}/temp \ + && chown -R 1000:0 /app/templates USER 1000 diff --git a/docker-jans-persistence-loader/Dockerfile b/docker-jans-persistence-loader/Dockerfile index f3359e2bdbc..e62f60b0e32 100644 --- a/docker-jans-persistence-loader/Dockerfile +++ b/docker-jans-persistence-loader/Dockerfile @@ -180,7 +180,8 @@ RUN adduser -s /bin/sh -h /home/1000 -D -G root -u 1000 1000 # adjust ownership and permission RUN chmod -R g=u /app/custom_ldif \ && chmod -R g=u /etc/certs \ - && chmod -R g=u /etc/jans + && chmod -R g=u /etc/jans \ + && chown -R 1000:0 /app/templates USER 1000 diff --git a/docker-jans-saml/Dockerfile b/docker-jans-saml/Dockerfile index 38859e83419..4f9d6805c8a 100644 --- a/docker-jans-saml/Dockerfile +++ b/docker-jans-saml/Dockerfile @@ -203,7 +203,8 @@ RUN chmod -R g=u /etc/certs \ && chown -R 1000:0 /opt/idp \ && chown -R 1000:0 /usr/share/java \ && chown -R 1000:0 /opt/keycloak/logs \ - && chown -R 1000:0 /opt/keycloak/conf + && chown -R 1000:0 /opt/keycloak/conf \ + && chown -R 1000:0 /app/templates USER 1000 diff --git a/docker-jans-scim/Dockerfile b/docker-jans-scim/Dockerfile index 46b2e549272..d84e7164169 100644 --- a/docker-jans-scim/Dockerfile +++ b/docker-jans-scim/Dockerfile @@ -237,7 +237,8 @@ RUN chmod 664 ${JETTY_BASE}/jans-scim/resources/log4j2.xml \ && chown -R 1000:0 /usr/share/java \ && chown -R 1000:0 /opt/prometheus \ && chown 1000:0 ${JETTY_BASE}/jans-scim/webapps/jans-scim.xml \ - && chown -R 1000:0 ${JETTY_HOME}/temp + && chown -R 1000:0 ${JETTY_HOME}/temp \ + && chown -R 1000:0 /app/templates USER 1000