diff --git a/docker-jans-auth-server/Dockerfile b/docker-jans-auth-server/Dockerfile index 13f19409f17..76608340c0f 100644 --- a/docker-jans-auth-server/Dockerfile +++ b/docker-jans-auth-server/Dockerfile @@ -233,7 +233,6 @@ RUN mkdir -p ${JETTY_BASE}/jans-auth/custom/pages \ COPY certs /etc/certs COPY jetty/jans-auth_web_resources.xml ${JETTY_BASE}/jans-auth/webapps/ -COPY jetty/jans-auth.xml ${JETTY_BASE}/jans-auth/webapps/ COPY jetty/log4j2.xml ${JETTY_BASE}/jans-auth/resources/ COPY conf/*.tmpl /app/templates/ COPY scripts /app/scripts @@ -242,6 +241,8 @@ RUN chmod +x /app/scripts/entrypoint.sh # create non-root user RUN adduser -s /bin/sh -D -G root -u 1000 jetty +COPY --chown=1000:0 jetty/jans-auth.xml ${JETTY_BASE}/jans-auth/webapps/ + # adjust ownership and permission RUN chmod -R g=u ${JETTY_BASE}/jans-auth/custom \ && chmod -R g=u ${JETTY_BASE}/jans-auth/resources \ diff --git a/docker-jans-config-api/Dockerfile b/docker-jans-config-api/Dockerfile index 9ce9ff0957a..b39123b1c41 100644 --- a/docker-jans-config-api/Dockerfile +++ b/docker-jans-config-api/Dockerfile @@ -190,7 +190,6 @@ RUN mkdir -p /etc/certs \ ${JETTY_BASE}/jans-config-api/logs RUN touch /etc/hosts.back -COPY jetty/jans-config-api.xml ${JETTY_BASE}/jans-config-api/webapps/ COPY jetty/log4j2.xml ${JETTY_BASE}/jans-config-api/resources/ COPY conf/*.tmpl /app/templates/ COPY plugins /app/plugins @@ -200,6 +199,8 @@ RUN chmod +x /app/scripts/entrypoint.sh # create non-root user RUN adduser -s /bin/sh -D -G root -u 1000 jetty +COPY --chown=1000:0 jetty/jans-config-api.xml ${JETTY_BASE}/jans-config-api/webapps/ + # adjust ownership and permission RUN chmod -R g=u ${JETTY_BASE}/jans-config-api/custom \ && chmod -R g=u ${JETTY_BASE}/jans-config-api/resources \