application (3.0.4)
Published 2024-11-19 09:39:21 +01:00 by holzi1005
Installation
docker pull git.h2-invent.com/datenschutzcenter/application:3.0.4
sha256:d00eaf4ecaaecab6b0d0e0f1129f0d851483f513be4daa118d3adced2cb4b757
Image Layers
ADD file:5758b97d8301c84a204a6e516241275d785a7cade40b2fb99f01fe122482e283 in / |
CMD ["/bin/sh"] |
LABEL Maintainer=Ernesto Serrano <info@ernesto.es> 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-zip php83-zlib 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 --chown=nobody 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" "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=128M post_max_size=8M upload_max_filesize=2M zlib_output_compression=On |
ARG VERSION |
ARG SUPERCRONIC_VERSION=0.2.33 |
LABEL version=3.0.4 Maintainer=H2 invent GmbH Description=Docker Image der Anwendung Open Datenschutzcenter org.opencontainers.version=3.0.4 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.4 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c apk --no-cache add unzip sqlite php83-sqlite3 php83-pdo_sqlite php83-xmlwriter php83-xsl php83-pcntl php83-posix php83-sockets && rm -rf /var/cache/apk/* # buildkit |
RUN |2 VERSION=3.0.4 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.4 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.4 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.4 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.4 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=3.0.4 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 && chown -R nobody public && chown -R nobody var && chmod -R 700 public && chmod -R 700 var # buildkit |
RUN |2 VERSION=3.0.4 SUPERCRONIC_VERSION=0.2.33 /bin/sh -c apk del unzip && rm artifact.zip && rm -r var/cache && rm -rf /var/cache/apk/* # buildkit |
USER nobody |
ENV nginx_root_directory=/var/www/html/public upload_max_filesize=10M |
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 | 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.4 |
version | 3.0.4 |
Details
2024-11-19 09:39:21 +01:00
Versions (6)
View all
Container
72
OCI / Docker
linux/amd64
Andreas Holzmann <support@h2-invent.com>
96 MiB