application (0.7.5)

Published 2024-12-03 20:55:41 +01:00 by holzi1005

Installation

docker pull git.h2-invent.com/open-event-manager/application:0.7.5
sha256:9f77bd90ccc4223178c8f102f835de3f2a78acef0b5f92b1d0d105b138080ae6

Image layers

ADD file:7fd90c097e2c4587dee91726d71abc02fa1aa6a3a3395c862206a4e14e0c299c in /
CMD ["/bin/sh"]
LABEL Maintainer=Andreas Holzmann <support@h2-invent.com> Description=Lightweight container with Nginx & PHP-FPM based on Alpine Linux.
RUN /bin/sh -c apk --no-cache add php7 php7-ctype php7-curl php7-dom php7-exif php7-fileinfo php7-fpm php7-gd php7-iconv php7-intl php7-json php7-mbstring php7-mysqli php7-opcache php7-openssl php7-pecl-apcu php7-pdo php7-pdo_mysql php7-pgsql php7-phar php7-session php7-simplexml php7-soap php7-sodium php7-tokenizer php7-xml php7-xmlreader php7-zip php7-zlib php7-xmlwriter php7-xsl php7-pcntl php7-posix php7-sockets nginx runit curl && apk add --no-cache --virtual .gettext gettext && mv /usr/bin/envsubst /tmp/ && runDeps="$( scanelf --needed --nobanner /tmp/envsubst | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' | sort -u | xargs -r apk info --installed | sort -u )" && apk add --no-cache $runDeps && apk del .gettext && mv /tmp/envsubst /usr/local/bin/ && rm -rf /var/cache/apk/* && rm /etc/nginx/conf.d/default.conf && chown -R nobody.nobody /run && chown -R nobody.nobody /var/lib/nginx && chown -R nobody.nobody /var/log/nginx # buildkit
COPY rootfs/ / # buildkit
USER nobody
WORKDIR /var/www/html
EXPOSE map[8080/tcp:{}]
CMD ["/bin/docker-entrypoint.sh"]
HEALTHCHECK &{["CMD-SHELL" "curl --silent --fail http://127.0.0.1:8080/fpm-ping"] "0s" "10s" "0s" '\x00'}
ENV nginx_root_directory=/var/www/html client_max_body_size=2M clear_env=no allow_url_fopen=On allow_url_include=Off display_errors=Off file_uploads=On max_execution_time=0 max_input_time=-1 max_input_vars=1000 memory_limit=512M post_max_size=8M upload_max_filesize=2M zlib_output_compression=On date_timezone=UTC intl_default_locale=en_US
ARG VERSION
ARG SUPERCRONIC_VERSION=0.2.33
LABEL version=0.7.5 Maintainer=H2 invent GmbH Description=Docker Image der Anwendung Open Datenschutzcenter org.opencontainers.version=0.7.5 org.opencontainers.image.title=Open Event Manager org.opencontainers.image.license=Apache-2.0 license org.opencontainers.image.vendor=H2 invent GmbH org.opencontainers.image.authors=Andreas Holzmann <support@h2-invent.com> org.opencontainers.image.source=https://github.com/h2-invent/open-datenschutzcenter org.opencontainers.image.documentation=https://open-datenschutzcenter.de org.opencontainers.image.url=https://open-datenschutzcenter.de
USER root
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c apk --no-cache add unzip nodejs npm git && rm -rf /var/cache/apk/* # buildkit
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c mkdir /etc/service/cron && echo "#!/bin/sh" > /etc/service/cron/run && echo "exec 2>&1 /supercronic /var/crontab" >> /etc/service/cron/run && chown -R nobody:nobody /etc/service/cron && chmod -R +x /etc/service/cron # buildkit
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c wget https://github.com/aptible/supercronic/releases/download/v${SUPERCRONIC_VERSION}/supercronic-linux-amd64 -O /supercronic && chmod +x /supercronic # buildkit
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c wget https://git.h2-invent.com/Public-System-Design/Public-Helperscripts/raw/branch/main/distributed_cron.sh -O /distributed_cron.sh && chmod +x /distributed_cron.sh # buildkit
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c echo "# Docker Cron Jobs" > /var/crontab && echo "SHELL=/bin/sh" >> /var/crontab && echo "*/10 * * * * /bin/sh /distributed_cron.sh '/var/www/html/data/cron_lock' 'php /var/www/html/bin/console app:cron'" >> /var/crontab && echo "" >> /var/crontab # buildkit
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c echo "#!/bin/sh" > /docker-entrypoint-init.d/01-symfony.sh && echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh && echo "php bin/console doc:mig:mig --no-interaction" >> /docker-entrypoint-init.d/01-symfony.sh && echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh && chmod +x /docker-entrypoint-init.d/01-symfony.sh # buildkit
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c wget https://github.com/open-event-manager/open-event-manager/archive/refs/tags/${VERSION}.tar.gz -O artifact.tar.gz && tar --strip-components=1 -xvzf artifact.tar.gz && chown -R nobody public && chmod -R 700 public # buildkit
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c mv /etc/php7/conf.d/custom.ini /etc/php7/custom.ini # buildkit
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c php -d memory_limit=-1 composer.phar install --optimize-autoloader --no-interaction --no-progress --no-dev # buildkit
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c mv /etc/php7/custom.ini /etc/php7/conf.d/custom.ini # buildkit
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c npm install && npm run build # buildkit
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c apk del unzip nodejs npm git && rm -rf /var/cache/apk/* # buildkit
RUN |2 VERSION=0.7.5 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c rm -r node_modules && rm artifact.tar.gz && rm -r var/cache && chown -R nobody var # buildkit
USER nobody
ENV nginx_root_directory=/var/www/html/public upload_max_filesize=10M date_timezone=Europe/Berlin intl_default_locale=de_DE

Labels

Key Value
Description Docker Image der Anwendung Open Datenschutzcenter
Maintainer H2 invent GmbH
org.opencontainers.image.authors Andreas Holzmann <support@h2-invent.com>
org.opencontainers.image.documentation https://open-datenschutzcenter.de
org.opencontainers.image.license Apache-2.0 license
org.opencontainers.image.source https://github.com/h2-invent/open-datenschutzcenter
org.opencontainers.image.title Open Event Manager
org.opencontainers.image.url https://open-datenschutzcenter.de
org.opencontainers.image.vendor H2 invent GmbH
org.opencontainers.version 0.7.5
version 0.7.5
Details
Container
2024-12-03 20:55:41 +01:00
12
OCI / Docker
linux/amd64
Andreas Holzmann <support@h2-invent.com>
232 MiB
Versions (1) View all
0.7.5 2024-12-03