Update odc_application_dockerfile.txt
This commit is contained in:
parent
2a54ff3b70
commit
78886fc4db
1 changed files with 10 additions and 6 deletions
|
@ -24,12 +24,12 @@ 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/crond/run \
|
# && echo "#!/bin/sh" > /etc/service/crond/run \
|
||||||
&& echo "exec 2>&1" >> /etc/service/crond/run \
|
# && echo "exec 2>&1" >> /etc/service/crond/run \
|
||||||
&& echo "exec crond -f" >> /etc/service/crond/run \
|
# && echo "exec crond -f" >> /etc/service/crond/run \
|
||||||
&& chown -R nobody:nobody /etc/service/crond \
|
# && chown -R nobody:nobody /etc/service/crond \
|
||||||
&& chmod -R +x /etc/service/crond
|
# && chmod -R +x /etc/service/crond
|
||||||
|
|
||||||
RUN chown nobody:nobody /usr/sbin/crond \
|
RUN chown nobody:nobody /usr/sbin/crond \
|
||||||
&& setcap cap_setgid=ep /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 \
|
&& 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 -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…
Add table
Reference in a new issue