Update jitsi_admin_application_dockerfile.txt
This commit is contained in:
parent
77424bc89b
commit
4deaa28e7d
1 changed files with 12 additions and 6 deletions
|
@ -33,12 +33,13 @@ RUN apk --no-cache add \
|
|||
|
||||
RUN sed -i 's/^date.timezone=.*$/date.timezone="Europe\/Berlin"/' /etc/php83/conf.d/custom.ini
|
||||
|
||||
RUN mkdir /etc/service/crond \
|
||||
&& echo "#!/bin/sh -e" > /etc/service/crond/run \
|
||||
&& echo "exec 2>&1 /usr/sbin/crond -f" >> /etc/service/crond/run \
|
||||
&& chown -R nobody:nobody /etc/service/crond \
|
||||
&& chmod -R +x /etc/service/crond \
|
||||
&& chown nobody:nobody /usr/sbin/crond \
|
||||
#RUN mkdir /etc/service/crond \
|
||||
# && echo "#!/bin/sh -e" > /etc/service/crond/run \
|
||||
# && echo "exec 2>&1 /usr/sbin/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
|
||||
|
||||
|
@ -73,6 +74,11 @@ RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/03-symfony.sh \
|
|||
&& echo "php ${WEBDIR}/bin/console cache:clear" >> /docker-entrypoint-init.d/03-symfony.sh \
|
||||
&& chmod +x /docker-entrypoint-init.d/03-symfony.sh
|
||||
|
||||
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/04-crond.sh \
|
||||
&& echo "# Start crond as daemon via entry script" >> /docker-entrypoint-init.d/04-crond.sh \
|
||||
&& echo "crond -b -l 8" >> /docker-entrypoint-init.d/04-crond.sh \
|
||||
&& chmod +x /docker-entrypoint-init.d/04-crond.sh
|
||||
|
||||
RUN wget https://github.com/H2-invent/jitsi-admin/releases/download/${VERSION}/application.zip -O artifact.zip \
|
||||
&& unzip artifact.zip -d ${WEBDIR} \
|
||||
&& chown -R nobody public \
|
||||
|
|
Loading…
Reference in a new issue