nextcloud (5.8.8-phpfix2)

Published 2026-10-22 16:29:35 +00:00 by lolozere

Installation

docker pull git.soletic.cloud/lolozere/nextcloud:5.8.8-phpfix2
sha256:ccf835545a1c028b2d6e831b5fe8225e6831e708d25c38cde559279fb893ee66

About this package

The Ubuntu container image maintained by Canonical Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things. It is the world's most popular operating system across public clouds and OpenStack clouds. It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale. Fast, secure and simple, Ubuntu powers millions of PCs worldwide.

Image Layers

umoci raw add-layer --image /home/buildd/rockcraft-ubuntu-f769691888dfc504c4977dc89c90edab/images/ubuntu:rockcraft-base /home/buildd/rockcraft-ubuntu-f769691888dfc504c4977dc89c90edab/images/.temp_layer.9621.tar --tag 26.04
umoci config --image /home/buildd/rockcraft-ubuntu-f769691888dfc504c4977dc89c90edab/images/ubuntu:26.04 --clear=config.entrypoint --clear=config.cmd
umoci config --image /home/buildd/rockcraft-ubuntu-f769691888dfc504c4977dc89c90edab/images/ubuntu:26.04 --clear=config.cmd --config.cmd /bin/bash
umoci config --image /home/buildd/rockcraft-ubuntu-f769691888dfc504c4977dc89c90edab/images/ubuntu:26.04 --config.env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
umoci config --image /home/buildd/rockcraft-ubuntu-f769691888dfc504c4977dc89c90edab/images/ubuntu:26.04 --clear=config.labels --config.label org.opencontainers.image.version=26.04 --config.label org.opencontainers.image.title=ubuntu --config.label org.opencontainers.image.created=2026-10-06T21:25:30.040262+00:00 --config.label org.opencontainers.image.description=The Ubuntu container image maintained by Canonical Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things. It is the world's most popular operating system across public clouds and OpenStack clouds. It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale. Fast, secure and simple, Ubuntu powers millions of PCs worldwide.
umoci config --image /home/buildd/rockcraft-ubuntu-f769691888dfc504c4977dc89c90edab/images/ubuntu:26.04 --clear=manifest.annotations --manifest.annotation org.opencontainers.image.version=26.04 --manifest.annotation org.opencontainers.image.title=ubuntu --manifest.annotation org.opencontainers.image.created=2026-10-06T21:25:30.040262+00:00 --manifest.annotation org.opencontainers.image.description=The Ubuntu container image maintained by Canonical Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things. It is the world's most popular operating system across public clouds and OpenStack clouds. It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale. Fast, secure and simple, Ubuntu powers millions of PCs worldwide.
umoci raw add-layer --image /home/buildd/rockcraft-ubuntu-f769691888dfc504c4977dc89c90edab/images/ubuntu:26.04 /home/buildd/rockcraft-ubuntu-f769691888dfc504c4977dc89c90edab/images/.temp_layer.control_data.9621.tar
ENV DEBIAN_FRONTEND=noninteractive
RUN /bin/sh -c echo 'Acquire::http {No-Cache=True;};' > /etc/apt/apt.conf.d/no-cache && echo 'APT::Install-Recommends "0"; APT::Install-Suggests "0";' > /etc/apt/apt.conf.d/01norecommend && echo 'Dir::Cache { srcpkgcache ""; pkgcache ""; }' > /etc/apt/apt.conf.d/02nocache && echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/02compress-indexes # buildkit
SHELL [/bin/bash -c]
RUN /bin/bash -c apt -y update && apt -y --no-install-recommends install ca-certificates curl dirmngr git gpg gpg-agent wget unzip zip software-properties-common build-essential make gcc g++ sudo cron dos2unix tini attr && curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg && echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list && apt -y update && apt -y --no-install-recommends install supervisor dumb-init iputils-ping telnet netcat-openbsd lsof net-tools openssl dnsutils rsync bind9-host crudini xmlstarlet moreutils jq pwgen swaks vim-tiny nano pkg-config openssh-client uuid less zip file shared-mime-info nginx-full sqlite3 mysql-client redis-tools postgresql-client ldap-utils gettext imagemagick graphicsmagick libcurl4 libcurl4-openssl-dev libexpat1-dev libffi-dev libgdbm-dev libmysqlclient-dev libncurses5-dev libpq-dev libreadline-dev libssl-dev libxml2-dev libxslt-dev libyaml-dev zlib1g-dev libgmp-dev libfreetype6-dev libjpeg-dev libjpeg-turbo8-dev libpng-dev libfontconfig1-dev libxslt1-dev libtool locales libmagic1 && dpkg --compare-versions "$(dpkg-query -W -f '${Version}' ca-certificates)" ge 20260816ubuntu0.26.04.1 && rm -rf /var/cache/apt /var/lib/apt/lists # buildkit
RUN /bin/bash -c curl -L https://github.com/tianon/gosu/releases/download/1.19/gosu-amd64 -o /usr/local/bin/gosu && chmod +x /usr/local/bin/gosu # buildkit
ARG YQVERSION=4.53.6
RUN |1 YQVERSION=4.53.6 /bin/bash -c curl -sL https://github.com/mikefarah/yq/releases/download/v${YQVERSION}/yq_linux_amd64 -o /usr/bin/yq && chmod +x /usr/bin/yq # buildkit
RUN |1 YQVERSION=4.53.6 /bin/bash -c userdel --remove ubuntu && adduser --uid 1000 --disabled-login --gecos 'Cloudron' cloudron && passwd -d cloudron # buildkit
RUN |1 YQVERSION=4.53.6 /bin/bash -c addgroup --gid 500 --system media && usermod -a -G media cloudron && usermod -a -G media www-data # buildkit
RUN |1 YQVERSION=4.53.6 /bin/bash -c echo "set noswapfile" >> /root/.vimrc && gosu cloudron:cloudron bash -c 'echo "set noswapfile" >> /home/cloudron/.vimrc' && echo "unset historylog" >> /etc/nanorc # buildkit
RUN |1 YQVERSION=4.53.6 /bin/bash -c sed -e 's,^# en_US.UTF-8 UTF-8,en_US.UTF-8 UTF-8,' -i /etc/locale.gen && locale-gen && update-locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8 # buildkit
RUN |1 YQVERSION=4.53.6 /bin/bash -c for dir in .cache .config .node-gyp .npm .mongodb .ssh .yarn .local; do rm -rf /root/${dir} && ln -sf /run/root${dir} /root/${dir} && mkdir /run/root${dir}; rm -rf /home/cloudron/${dir} && ln -sf /run/cloudron${dir} /home/cloudron/${dir} && mkdir /run/cloudron${dir} && chown --no-dereference cloudron:cloudron /home/cloudron/${dir}; chown cloudron:cloudron /run/cloudron${dir}; done # buildkit
RUN |1 YQVERSION=4.53.6 /bin/bash -c for file in .bash_history .dbshell .inputrc .irb_history .mongorc.js .mysql_history .psql_history .mongoshrc.js .yarnrc; do ln -sf /run/root${file} /root/${file}; ln -sf /run/cloudron${file} /home/cloudron/${file} && chown --no-dereference cloudron:cloudron /home/cloudron/${file}; done # buildkit
COPY cloudron_addons /usr/local/cloudron_addons # buildkit
RUN |1 YQVERSION=4.53.6 /bin/bash -c echo -e "\nsource /usr/local/cloudron_addons\n\n[[ -f /app/data/.bashrc ]] && source /app/data/.bashrc\n" >> /root/.bashrc # buildkit
ARG PHP_SERIES=8.5
RUN |1 PHP_SERIES=8.5 /bin/bash -c curl -fsSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb && dpkg -i /tmp/debsuryorg-archive-keyring.deb && rm /tmp/debsuryorg-archive-keyring.deb && echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list && apt update && apt install -y php${PHP_SERIES} php${PHP_SERIES}-{apcu,bcmath,bz2,cgi,cli,common,curl,dba,dev,enchant,fpm,gd,gmp,imap,interbase,intl,ldap,mbstring,mysql,odbc,pgsql,phpdbg,pspell,readline,snmp,soap,sqlite3,sybase,tidy,xml,xsl,yaml,zip} apache2 libapache2-mod-php${PHP_SERIES} php${PHP_SERIES}-{gnupg,imagick,mailparse,redis,uuid,xmlrpc} php-{date,pear,twig} ghostscript && if apt-cache show "php${PHP_SERIES}-zmq" >/dev/null 2>&1; then apt install -y php${PHP_SERIES}-zmq; fi && if dpkg --compare-versions "${PHP_SERIES}" lt 8.5; then apt install -y php${PHP_SERIES}-opcache; fi && rm -rf /var/cache/apt /var/lib/apt/lists # buildkit
RUN |1 PHP_SERIES=8.5 /bin/bash -c curl --fail -L https://getcomposer.org/download/2.10.3/composer.phar -o /usr/bin/composer && chmod +x /usr/bin/composer # buildkit
RUN |1 PHP_SERIES=8.5 /bin/bash -c update-alternatives --set php /usr/bin/php${PHP_SERIES} && update-alternatives --set phar /usr/bin/phar${PHP_SERIES} && update-alternatives --set phar.phar /usr/bin/phar.phar${PHP_SERIES} && update-alternatives --set phpize /usr/bin/phpize${PHP_SERIES} && update-alternatives --set php-config /usr/bin/php-config${PHP_SERIES} # buildkit
RUN |1 PHP_SERIES=8.5 /bin/bash -c set -eux; case "${PHP_SERIES}" in 8.5) min=8.5.12 ;; 8.4) min=8.4.27 ;; *) echo "unsupported PHP_SERIES ${PHP_SERIES}" >&2; exit 1 ;; esac; installed=$(php -r 'echo PHP_VERSION;'); dpkg --compare-versions "${installed}" ge "${min}"; echo "php ${installed} >= ${min}" # buildkit
RUN /bin/bash -c mkdir -p /app/code /app/pkg # buildkit
WORKDIR /app/code
RUN /bin/bash -c apt-get update && apt-get install -y ffmpeg ghostscript poppler-utils smbclient php-smbclient p7zip-full libreoffice libmagickcore-7.q16-10-extra rar unrar && rm -r /var/cache/apt /var/lib/apt/lists # buildkit
COPY policy.xml /etc/ImageMagick-7/policy.xml # buildkit
ARG NEXTCLOUD_VERSION=34.0.4
RUN |1 NEXTCLOUD_VERSION=34.0.4 /bin/bash -c curl -L https://download.nextcloud.com/server/releases/nextcloud-${NEXTCLOUD_VERSION}.tar.bz2 | tar -xj --strip-components 1 -f - -C . && chown -R www-data:www-data /app/code # buildkit
RUN |1 NEXTCLOUD_VERSION=34.0.4 /bin/bash -c rm -rf /app/code/config && ln -s /app/data/config /app/code/config && mv /app/code/apps /app/pkg/apps_template && ln -s /app/data/apps /app/code/apps # buildkit
RUN |1 NEXTCLOUD_VERSION=34.0.4 /bin/bash -c a2disconf other-vhosts-access-log && echo "Listen 80" > /etc/apache2/ports.conf && a2enmod rewrite env && rm /etc/apache2/sites-enabled/* && sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.conf && ln -sf /app/data/apache/mpm_prefork.conf /etc/apache2/mods-enabled/mpm_prefork.conf # buildkit
COPY apache/nextcloud.conf /etc/apache2/sites-enabled/nextcloud.conf # buildkit
RUN |1 NEXTCLOUD_VERSION=34.0.4 /bin/bash -c crudini --set /etc/php/8.5/apache2/php.ini PHP upload_max_filesize 5G && crudini --set /etc/php/8.5/apache2/php.ini PHP post_max_size 5G && crudini --set /etc/php/8.5/apache2/php.ini PHP memory_limit 512M && crudini --set /etc/php/8.5/apache2/php.ini opcache opcache.enable 1 && crudini --set /etc/php/8.5/apache2/php.ini opcache opcache.enable_cli 1 && crudini --set /etc/php/8.5/apache2/php.ini opcache opcache.interned_strings_buffer 32 && crudini --set /etc/php/8.5/apache2/php.ini opcache opcache.max_accelerated_files 10000 && crudini --set /etc/php/8.5/apache2/php.ini opcache opcache.memory_consumption 128 && crudini --set /etc/php/8.5/apache2/php.ini opcache opcache.save_comments 1 && crudini --set /etc/php/8.5/apache2/php.ini opcache opcache.revalidate_freq 1 && crudini --set /etc/php/8.5/apache2/php.ini Session session.save_path /run/nextcloud/sessions && crudini --set /etc/php/8.5/apache2/php.ini Session session.gc_probability 1 && crudini --set /etc/php/8.5/apache2/php.ini Session session.gc_divisor 100 # buildkit
RUN |1 NEXTCLOUD_VERSION=34.0.4 /bin/bash -c phpenmod apcu && crudini --set /etc/php/8.5/apache2/php.ini apcu apc.enable_cli 1 && crudini --set /etc/php/8.5/cli/php.ini apcu apc.enable_cli 1 # buildkit
RUN |1 NEXTCLOUD_VERSION=34.0.4 /bin/bash -c crudini --set /etc/ssl/openssl.cnf provider_sect legacy "legacy_sect" && crudini --set /etc/ssl/openssl.cnf default_sect activate 1 && crudini --set /etc/ssl/openssl.cnf legacy_sect activate 1 # buildkit
RUN |1 NEXTCLOUD_VERSION=34.0.4 /bin/bash -c sed -e 's/\(.*\)php_value upload_max_filesize.*/\1php_value upload_max_filesize 5G/' -e 's/\(.*\)php_value post_max_size.*/\1php_value post_max_size 5G/' /app/code/.htaccess > /app/pkg/htaccess.template # buildkit
RUN |1 NEXTCLOUD_VERSION=34.0.4 /bin/bash -c ln -s /app/data/php.ini /etc/php/8.5/apache2/conf.d/99-cloudron.ini && ln -s /app/data/php.ini /etc/php/8.5/cli/conf.d/99-cloudron.ini # buildkit
RUN |1 NEXTCLOUD_VERSION=34.0.4 /bin/bash -c ln -sf /app/data/htaccess /app/code/.htaccess # buildkit
RUN |1 NEXTCLOUD_VERSION=34.0.4 /bin/bash -c echo "alias occ='sudo -u www-data -- php -f /app/code/occ'" >> /root/.bashrc # buildkit
COPY apache/mpm_prefork.conf start.sh cron.sh preview-cleanup.sh /app/pkg/ # buildkit
COPY supervisor/* /etc/supervisor/conf.d/ # buildkit
RUN |1 NEXTCLOUD_VERSION=34.0.4 /bin/bash -c ln -sf /run/nextcloud/supervisord.log /var/log/supervisor/supervisord.log # buildkit
CMD ["/app/pkg/start.sh"]

Labels

Key Value
org.opencontainers.image.created 2026-10-06T21:25:30.040262+00:00
org.opencontainers.image.description The Ubuntu container image maintained by Canonical Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things. It is the world's most popular operating system across public clouds and OpenStack clouds. It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale. Fast, secure and simple, Ubuntu powers millions of PCs worldwide.
org.opencontainers.image.title ubuntu
org.opencontainers.image.version 26.04
Details
Container
2026-10-22 16:29:35 +00:00
1
OCI / Docker
linux/amd64
1.0 GiB
Versions (1) View all
5.8.8-phpfix2 2026-10-22