From 4937270e6cfb9032b41c488dc640ac55dde28ff2 Mon Sep 17 00:00:00 2001 From: holzi1005 Date: Sun, 17 Nov 2024 00:12:46 +0100 Subject: [PATCH] Update odc_application_dockerfile.txt --- odc_application_dockerfile.txt | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/odc_application_dockerfile.txt b/odc_application_dockerfile.txt index a24df4d..c0f39a1 100644 --- a/odc_application_dockerfile.txt +++ b/odc_application_dockerfile.txt @@ -22,12 +22,11 @@ RUN apk --no-cache add \ php83-sqlite3 \ php83-pdo_sqlite -#RUN mkdir /etc/service/crond \ -# && echo "#!/bin/sh" > /etc/service/cron/run \ -# && echo "exec 2>&1" >> /etc/service/cron/run \ -# && echo "exec supercronic /var/crontab" >> /etc/service/cron/run \ -# && chown -R nobody:nobody /etc/service/cron \ -# && chmod -R +x /etc/service/cron +RUN mkdir /etc/service/crond \ + && echo "#!/bin/sh" > /etc/service/cron/run \ + && echo "exec 2>&1 supercronic /var/crontab" >> /etc/service/cron/run \ + && chown -R nobody:nobody /etc/service/cron \ + && chmod -R +x /etc/service/cron RUN wget https://github.com/aptible/supercronic/releases/download/v0.2.33/supercronic-linux-amd64 -O /supercronic \ && chmod +x /supercronic @@ -48,10 +47,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/04-crond.sh \ - && echo "crond -c /etc/crontabs/nobody -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 \