From 4deaa28e7df38d79ef341552e98a629e0522200e Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Sat, 16 Nov 2024 21:19:15 +0100 Subject: [PATCH] Update jitsi_admin_application_dockerfile.txt --- jitsi_admin_application_dockerfile.txt | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/jitsi_admin_application_dockerfile.txt b/jitsi_admin_application_dockerfile.txt index 69ec7fe..16d1647 100644 --- a/jitsi_admin_application_dockerfile.txt +++ b/jitsi_admin_application_dockerfile.txt @@ -33,12 +33,13 @@ RUN apk --no-cache add \ RUN sed -i 's/^date.timezone=.*$/date.timezone="Europe\/Berlin"/' /etc/php83/conf.d/custom.ini -RUN mkdir /etc/service/crond \ - && echo "#!/bin/sh -e" > /etc/service/crond/run \ - && echo "exec 2>&1 /usr/sbin/crond -f" >> /etc/service/crond/run \ - && chown -R nobody:nobody /etc/service/crond \ - && chmod -R +x /etc/service/crond \ - && chown nobody:nobody /usr/sbin/crond \ +#RUN mkdir /etc/service/crond \ +# && echo "#!/bin/sh -e" > /etc/service/crond/run \ +# && echo "exec 2>&1 /usr/sbin/crond -f" >> /etc/service/crond/run \ +# && chown -R nobody:nobody /etc/service/crond \ +# && chmod -R +x /etc/service/crond \ + +RUN chown nobody:nobody /usr/sbin/crond \ && setcap cap_setgid=ep /usr/sbin/crond \ && setcap cap_setuid=ep /usr/sbin/crond @@ -73,6 +74,11 @@ RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/03-symfony.sh \ && echo "php ${WEBDIR}/bin/console cache:clear" >> /docker-entrypoint-init.d/03-symfony.sh \ && chmod +x /docker-entrypoint-init.d/03-symfony.sh +RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/04-crond.sh \ + && echo "# Start crond as daemon via entry script" >> /docker-entrypoint-init.d/04-crond.sh \ + && echo "crond -b -l 8" >> /docker-entrypoint-init.d/04-crond.sh \ + && chmod +x /docker-entrypoint-init.d/04-crond.sh + RUN wget https://github.com/H2-invent/jitsi-admin/releases/download/${VERSION}/application.zip -O artifact.zip \ && unzip artifact.zip -d ${WEBDIR} \ && chown -R nobody public \