application (latest)
Published 2024-12-12 07:58:03 +01:00 by holzi1005
Installation
docker pull git.h2-invent.com/datenschutzcenter/application:latest
sha256:967e5281140d7eb5c9a2059d7bd437497471e5430c44d077565af55582cf5611
Image Layers
ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit |
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 php83 php83-ctype php83-curl php83-dom php83-exif php83-fileinfo php83-fpm php83-gd php83-iconv php83-intl php83-json php83-mbstring php83-mysqli php83-opcache php83-openssl php83-pecl-apcu php83-pdo php83-pdo_mysql php83-pgsql php83-phar php83-session php83-simplexml php83-soap php83-sodium php83-tokenizer php83-xml php83-xmlreader php83-xmlwriter php83-zip php83-zlib php83-xsl php83-pcntl php83-posix php83-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/http.d/default.conf && mkdir -p /run /var/lib/nginx /var/www/html /var/log/nginx && chown -R nobody:nobody /run /var/lib/nginx /var/www/html /var/log/nginx # buildkit |
COPY rootfs/ / # buildkit |
USER nobody |
WORKDIR /var/www/html |
EXPOSE map[8080/tcp:{}] |
ENTRYPOINT ["/bin/docker-entrypoint.sh"] |
HEALTHCHECK &{["CMD-SHELL" "curl --silent --fail http://127.0.0.1:8080/fpm-ping || exit 1"] "0s" "10s" "0s" '\x00'} |
ENV nginx_root_directory=/var/www/html/public 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=128M post_max_size=8M upload_max_filesize=2M zlib_output_compression=On date_timezone=Europe/Berlin intl_default_locale=de_DE |
ARG VERSION |
ARG SUPERCRONIC_VERSION=0.2.33 |
LABEL version=3.0.6 Maintainer=H2 invent GmbH Description=Docker Image for Open Datenschutzcenter org.opencontainers.version=3.0.6 org.opencontainers.image.title=Open Datenschutzcenter org.opencontainers.image.license=AGPLv3 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=3.0.6 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c apk --no-cache add unzip && rm -rf /var/cache/apk/* # buildkit |
RUN |2 VERSION=3.0.6 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=3.0.6 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=3.0.6 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=3.0.6 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c echo "# Docker Cron Jobs" > /var/crontab && echo "SHELL=/bin/sh" >> /var/crontab && echo "* * * * * date" >> /var/crontab && echo "0 1 * * * curl https://open-datenschutzcenter.de/health/check" >> /var/crontab && echo "0 9 * * 1-5 /bin/sh /distributed_cron.sh 'data/cron_log' 'php /var/www/html/bin/console app:cron'" >> /var/crontab && echo "" >> /var/crontab # buildkit |
RUN |2 VERSION=3.0.6 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 |
USER nobody |
RUN |2 VERSION=3.0.6 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c wget https://github.com/H2-invent/open-datenschutzcenter/releases/download/${VERSION}/application.zip -O artifact.zip && unzip artifact.zip && mkdir data && rm -r var/cache && rm artifact.zip # buildkit |
ENV nginx_root_directory=/var/www/html/public upload_max_filesize=10M |
Labels
Key | Value |
---|---|
Description | Docker Image for 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 | AGPLv3 |
org.opencontainers.image.source | https://github.com/h2-invent/open-datenschutzcenter |
org.opencontainers.image.title | Open Datenschutzcenter |
org.opencontainers.image.url | https://open-datenschutzcenter.de |
org.opencontainers.image.vendor | H2 invent GmbH |
org.opencontainers.version | 3.0.6 |
version | 3.0.6 |
Details
2024-12-12 07:58:03 +01:00
Versions (6)
View all
Container
0
OCI / Docker
linux/amd64
Andreas Holzmann <support@h2-invent.com>
59 MiB