Update odc_application_dockerfile.txt
This commit is contained in:
parent
e7132cc11a
commit
4937270e6c
1 changed files with 5 additions and 10 deletions
|
@ -22,12 +22,11 @@ RUN apk --no-cache add \
|
||||||
php83-sqlite3 \
|
php83-sqlite3 \
|
||||||
php83-pdo_sqlite
|
php83-pdo_sqlite
|
||||||
|
|
||||||
#RUN mkdir /etc/service/crond \
|
RUN mkdir /etc/service/crond \
|
||||||
# && echo "#!/bin/sh" > /etc/service/cron/run \
|
&& echo "#!/bin/sh" > /etc/service/cron/run \
|
||||||
# && echo "exec 2>&1" >> /etc/service/cron/run \
|
&& echo "exec 2>&1 supercronic /var/crontab" >> /etc/service/cron/run \
|
||||||
# && echo "exec supercronic /var/crontab" >> /etc/service/cron/run \
|
&& chown -R nobody:nobody /etc/service/cron \
|
||||||
# && chown -R nobody:nobody /etc/service/cron \
|
&& chmod -R +x /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 \
|
RUN wget https://github.com/aptible/supercronic/releases/download/v0.2.33/supercronic-linux-amd64 -O /supercronic \
|
||||||
&& chmod +x /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 \
|
&& 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/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 \
|
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 \
|
||||||
|
|
Loading…
Reference in a new issue