diff --git a/odc_application_dockerfile.txt b/odc_application_dockerfile.txt index 3821c1e..bc30424 100644 --- a/odc_application_dockerfile.txt +++ b/odc_application_dockerfile.txt @@ -24,6 +24,13 @@ RUN apk --no-cache add \ php83-sqlite3 \ php83-pdo_sqlite +RUN mkdir /etc/service/crond \ + && echo "#!/bin/sh" > /etc/service/crond/run \ + && echo "exec 2>&1" >> /etc/service/crond/run \ + && echo "exec 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 @@ -43,11 +50,6 @@ RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/01-symfony.sh \ && echo "php ${WEBDIR}/bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh \ && chmod +x /docker-entrypoint-init.d/01-symfony.sh -RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/99-crond.sh \ - && echo "# Start crond as daemon via entry script" >> /docker-entrypoint-init.d/99-crond.sh \ - && echo "exec crond -f" >> /docker-entrypoint-init.d/99-crond.sh \ - && chmod +x /docker-entrypoint-init.d/99-crond.sh - RUN wget https://github.com/H2-invent/open-datenschutzcenter/releases/download/${VERSION}/application.zip -O artifact.zip \ && unzip artifact.zip -d ${WEBDIR} \ && chown -R nobody ${WEBDIR}/public \