add dockerfile for jitsi admin messenger
This commit is contained in:
parent
de59ab076c
commit
f4360088bb
1 changed files with 57 additions and 0 deletions
57
jitsi_admin_messenger_dockerfile
Normal file
57
jitsi_admin_messenger_dockerfile
Normal file
|
@ -0,0 +1,57 @@
|
|||
ARG PHP_IMAGE_VERSION=3.20.6
|
||||
FROM erseco/alpine-php-webserver:${PHP_IMAGE_VERSION}
|
||||
|
||||
ARG VERSION
|
||||
|
||||
LABEL version="${VERSION}" \
|
||||
Maintainer="H2 invent GmbH" \
|
||||
Description="Jitsi Admin Messenger Service" \
|
||||
org.opencontainers.version="${VERSION}" \
|
||||
org.opencontainers.image.title="Jitsi Admin" \
|
||||
org.opencontainers.image.license="AGPLv3" \
|
||||
org.opencontainers.image.vendor="H2 invent GmbH" \
|
||||
org.opencontainers.image.authors="Emanuel Holzmann <support@h2-invent.com>" \
|
||||
org.opencontainers.image.source="https://github.com/h2-invent/jitsi-admin" \
|
||||
org.opencontainers.image.documentation="https://meetling.de" \
|
||||
org.opencontainers.image.url="https://jitsi-admin.de"
|
||||
|
||||
USER root
|
||||
|
||||
RUN apk --no-cache add \
|
||||
unzip \
|
||||
php83-ldap \
|
||||
php83-xmlwriter \
|
||||
php83-xsl \
|
||||
php83-pcntl \
|
||||
php83-posix \
|
||||
php83-sockets \
|
||||
php83-bcmath \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
RUN echo "Europe/Berlin" > /etc/timezone
|
||||
|
||||
RUN rm -r /etc/service/nginx \
|
||||
&& rm -r /etc/service/php
|
||||
|
||||
RUN wget https://github.com/H2-invent/jitsi-admin/releases/download/${VERSION}/application.zip -O artifact.zip \
|
||||
&& unzip artifact.zip \
|
||||
&& chown -R nobody public \
|
||||
&& chown -R nobody theme \
|
||||
&& chown -R nobody var \
|
||||
&& chmod -R 700 public \
|
||||
&& chmod -R 700 theme \
|
||||
&& chmod -R 700 var \
|
||||
&& rm artifact.zip \
|
||||
&& rm -r var/cache
|
||||
|
||||
USER nobody
|
||||
|
||||
ENV nginx_root_directory=/var/www/html/public \
|
||||
memory_limit=1024M \
|
||||
post_max_size=20M \
|
||||
upload_max_filesize=10M \
|
||||
date_timezone=Europe/Berlin
|
||||
|
||||
HEALTHCHECK --interval=60s CMD exit 0
|
||||
|
||||
CMD ["php -d memory_limit=-1 /var/www/html/bin/console messenger:consume async --memory-limit=512m --env=prod"]
|
Loading…
Reference in a new issue