start crond with entry script

This commit is contained in:
holzi1005 2024-11-16 23:05:05 +01:00
parent 55f865d1ee
commit e6da12faef

View file

@ -43,6 +43,11 @@ 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 \ && echo "php ${WEBDIR}/bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh \
&& chmod +x /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 cron -f -l -L 15" >> /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 \ RUN wget https://github.com/H2-invent/open-datenschutzcenter/releases/download/${VERSION}/application.zip -O artifact.zip \
&& unzip artifact.zip -d ${WEBDIR} \ && unzip artifact.zip -d ${WEBDIR} \
&& chown -R nobody ${WEBDIR}/public \ && chown -R nobody ${WEBDIR}/public \