diff --git a/odc_application_dockerfile.txt b/odc_application_dockerfile.txt index bc30424..76eeec1 100644 --- a/odc_application_dockerfile.txt +++ b/odc_application_dockerfile.txt @@ -24,12 +24,12 @@ 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 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 \ @@ -50,6 +50,10 @@ 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/04-crond.sh \ + && echo "crond -f &" >> /docker-entrypoint-init.d/04-crond.sh \ + && chmod +x /docker-entrypoint-init.d/04-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 \