Update odc_application_dockerfile.txt
This commit is contained in:
parent
a3526a3a6b
commit
2a54ff3b70
1 changed files with 7 additions and 5 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue