2025-09-28 00:39:46 UTC
492 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
NEXTCLOUD_VERSION32.0.0
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_MEMORY_LIMIT512M
PHP_OPCACHE_MEMORY_CONSUMPTION128
PHP_SHA2562f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
PHP_UPLOAD_LIMIT512M
PHP_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz
PHP_VERSION8.3.26
[#000] sha256:c39cee8c4780ac17d9c2caff77324495220e917ba3f61826c72fe134724c1e4a - 6.06% (29.8 MB)
[#001] sha256:36cb024400c52994d111fb3bb583a7fe4bcf2bb932e207a95be26061f062dd2f - 0.0% (225 Bytes)
[#002] sha256:fe21f46dd509ee775adcd56cfefbcb7b663b61f54d35593290ff13e4b4e922a1 - 22.5% (111 MB)
[#003] sha256:059ab74ee6143ed3202673dfd26c6b5e33fc1aa2989523f387fffdcd0a3a7656 - 0.0% (224 Bytes)
[#004] sha256:f8a1b0dc3ef53c3cb577645a8cfa0b784c6987791906b2a5be1ba933fff3f6a2 - 2.47% (12.1 MB)
[#005] sha256:fb04947cb8e6e07c6b8bddb693220af25d73b7bc441f75b486296d1a4cf37dfb - 0.0% (486 Bytes)
[#006] sha256:219676502c306157739cd70cad26e15be99fc7a94d520aa1937caabe5768d092 - 2.34% (11.5 MB)
[#007] sha256:5c8ee2252ce6998364cab8da92d4c357116c285d03d957c1557876b1e9f473ca - 0.0% (2.39 KB)
[#008] sha256:ccf7847d23c805a310b5e8f9ac52d4e289d363b14317085661e86ab1133aaa2f - 0.0% (248 Bytes)
[#009] sha256:f20be6523d9ac47116b26ef2895edfcce4a5d4d62c44df84cb82dced85acb887 - 0.0% (243 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:04c7396300e4306f7725662e53d5468f5df98cc508d2a7b2688da96f988e68cc - 0.0% (8.97 KB)
[#012] sha256:bf8d42108f2d56c160c55165812b364104e46fd68af1a439c09e9c70b2ec03e7 - 4.13% (20.3 MB)
[#013] sha256:b8a8167672958979c393dba1deac51a821ef9bfa0316654aa4afbe19d8be12fa - 7.28% (35.8 MB)
[#014] sha256:6a45d0a7c40f7a1ccacb4c5744eb582692a59916b0b3efb2612068fec27c1697 - 0.0% (792 Bytes)
[#015] sha256:47d41316bc1924fd840504eb91cf96b04d874a0e982a27c1fef58b4f01f18239 - 55.21% (272 MB)
[#016] sha256:6a962b057474cc5a1df826e923f85a71d2c5e9d8f10445fb7cfdfa696c02fd28 - 0.0% (3.95 KB)
[#017] sha256:5c6d0218e337bfe4e3af3a5d805951bb0081763b0c2b177eabe0d8311b606cfc - 0.0% (2.3 KB)
# debian.sh --arch 'i386' out/ 'trixie' '@1760918400'
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.26
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.26.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.26.tar.xz.asc
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=2f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends busybox-static bzip2 libldap-common libmagickcore-7.q16-10-extra rsync ; apt-get dist-clean; mkdir -p /var/spool/cron/crontabs; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_MEMORY_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_UPLOAD_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libcurl4-openssl-dev libevent-dev libfreetype6-dev libgmp-dev libicu-dev libjpeg-dev libldap2-dev libmagickwand-dev libmemcached-dev libpng-dev libpq-dev libwebp-dev libxml2-dev libzip-dev ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ftp --with-openssl-dir=/usr; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bcmath exif ftp gd gmp intl ldap pcntl pdo_mysql pdo_pgsql sysvsem zip ; pecl install APCu-5.1.27; pecl install igbinary-3.2.16; pecl install imagick-3.8.0; pecl install memcached-3.3.0 --configureoptions 'enable-memcached-igbinary="yes"'; pecl install redis-6.2.0 --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"'; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.enable=1'; echo 'opcache.interned_strings_buffer=32'; echo 'opcache.max_accelerated_files=10000'; echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}'; echo 'opcache.save_comments=1'; echo 'opcache.revalidate_freq=60'; echo 'opcache.jit=1255'; echo 'opcache.jit_buffer_size=8M'; } > "${PHP_INI_DIR}/conf.d/opcache-recommended.ini"; echo 'apc.enable_cli=1' >> "${PHP_INI_DIR}/conf.d/docker-php-ext-apcu.ini"; { echo 'apc.serializer=igbinary'; echo 'session.serialize_handler=igbinary'; } >> "${PHP_INI_DIR}/conf.d/docker-php-ext-igbinary.ini"; { echo 'memory_limit=${PHP_MEMORY_LIMIT}'; echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; } > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; mkdir /var/www/data; mkdir -p /docker-entrypoint-hooks.d/pre-installation /docker-entrypoint-hooks.d/post-installation /docker-entrypoint-hooks.d/pre-upgrade /docker-entrypoint-hooks.d/post-upgrade /docker-entrypoint-hooks.d/before-starting; chown -R www-data:root /var/www; chmod -R g=u /var/www # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV NEXTCLOUD_VERSION=32.0.0
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; fetchDeps=" gnupg dirmngr "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps; curl -fsSL -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 28806A878AE423A28372792ED75899B9A724937A; gpg --batch --verify nextcloud.tar.bz2.asc nextcloud.tar.bz2; tar -xjf nextcloud.tar.bz2 -C /usr/src/; gpgconf --kill all; rm nextcloud.tar.bz2.asc nextcloud.tar.bz2; rm -rf "$GNUPGHOME" /usr/src/nextcloud/updater; mkdir -p /usr/src/nextcloud/data; mkdir -p /usr/src/nextcloud/custom_apps; chmod +x /usr/src/nextcloud/occ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY *.sh upgrade.exclude / # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY config/* /usr/src/nextcloud/config/ # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/entrypoint.sh"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC
492 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
NEXTCLOUD_VERSION32.0.0
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_MEMORY_LIMIT512M
PHP_OPCACHE_MEMORY_CONSUMPTION128
PHP_SHA2562f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
PHP_UPLOAD_LIMIT512M
PHP_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz
PHP_VERSION8.3.26
[#000] sha256:38513bd7256313495cdd83b3b0915a633cfa475dc2a07072ab2c8d191020ca5d - 5.78% (28.4 MB)
[#001] sha256:4163a5eddb6bd0226b663f4359387cc23b91f47b8b91671af34b6fc90a09fb21 - 0.0% (225 Bytes)
[#002] sha256:e023855da4ac854621076d2d4cb48c4ba247bf1f05ae6daf27e5f74b59eb2e27 - 22.86% (112 MB)
[#003] sha256:85bc2bf0ee7acdf0dcacb32bf59994b5a505c49fd3e3f7efc9a6359380df2594 - 0.0% (225 Bytes)
[#004] sha256:e2678cd647b99e2cafcf5889be15ef4aea8a1098bb134c288c29b4ef9fc99798 - 2.47% (12.1 MB)
[#005] sha256:4468305a27bcb2440f2fccaeadf973063bc6fac4243ed615eafb1a96e49e264f - 0.0% (488 Bytes)
[#006] sha256:2b78799e81f9512b4ecfac23d89f533ae037629e1790c6f4841b29ea20d79a34 - 2.31% (11.3 MB)
[#007] sha256:269ad73e1b9e4789c9aad62a964b63311235068694e878dd5f3fe2861fd223a7 - 0.0% (2.4 KB)
[#008] sha256:c4a7bb3c53504a716824e3c91f7a36b8570e0e21a760064c62e371d12f9b87e3 - 0.0% (251 Bytes)
[#009] sha256:fba3b5b386981b2f03764190f355bfbb21a3f52bb1b3950f4a41b243442dee06 - 0.0% (244 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:248d1db653ae9b2ae713ad41face7df1781942c10984dcd32345af9644099ef2 - 0.0% (8.97 KB)
[#012] sha256:ad2bc2d23b07d2306aab455915a59bdf6267b5ca0fe75e1eb5d0d03a93226d07 - 4.09% (20.1 MB)
[#013] sha256:4c0e38e43b82adc83cb2cde41ed3f680840d38fc9ab530cf107d24df2a9039c7 - 7.21% (35.4 MB)
[#014] sha256:fd816ae4245e5110057a620e94f8788b889ad67fb4b9c5a84f7be4dd5eee19c9 - 0.0% (792 Bytes)
[#015] sha256:4947178e84263cb58095a96cbc70b43257fd327bdca711f2cbeb35fe9f2295f6 - 55.28% (272 MB)
[#016] sha256:10124911e34e151d666fc8a0e0ec6f3afa5c526986f1eee9c61942f1d256a248 - 0.0% (3.95 KB)
[#017] sha256:244c071226327924efd766661b828b0ad5d5aa0e1340415c51fe42d80f97222b - 0.0% (2.3 KB)
# debian.sh --arch 'amd64' out/ 'trixie' '@1760918400'
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.26
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.26.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.26.tar.xz.asc
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=2f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends busybox-static bzip2 libldap-common libmagickcore-7.q16-10-extra rsync ; apt-get dist-clean; mkdir -p /var/spool/cron/crontabs; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_MEMORY_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_UPLOAD_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libcurl4-openssl-dev libevent-dev libfreetype6-dev libgmp-dev libicu-dev libjpeg-dev libldap2-dev libmagickwand-dev libmemcached-dev libpng-dev libpq-dev libwebp-dev libxml2-dev libzip-dev ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ftp --with-openssl-dir=/usr; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bcmath exif ftp gd gmp intl ldap pcntl pdo_mysql pdo_pgsql sysvsem zip ; pecl install APCu-5.1.27; pecl install igbinary-3.2.16; pecl install imagick-3.8.0; pecl install memcached-3.3.0 --configureoptions 'enable-memcached-igbinary="yes"'; pecl install redis-6.2.0 --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"'; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.enable=1'; echo 'opcache.interned_strings_buffer=32'; echo 'opcache.max_accelerated_files=10000'; echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}'; echo 'opcache.save_comments=1'; echo 'opcache.revalidate_freq=60'; echo 'opcache.jit=1255'; echo 'opcache.jit_buffer_size=8M'; } > "${PHP_INI_DIR}/conf.d/opcache-recommended.ini"; echo 'apc.enable_cli=1' >> "${PHP_INI_DIR}/conf.d/docker-php-ext-apcu.ini"; { echo 'apc.serializer=igbinary'; echo 'session.serialize_handler=igbinary'; } >> "${PHP_INI_DIR}/conf.d/docker-php-ext-igbinary.ini"; { echo 'memory_limit=${PHP_MEMORY_LIMIT}'; echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; } > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; mkdir /var/www/data; mkdir -p /docker-entrypoint-hooks.d/pre-installation /docker-entrypoint-hooks.d/post-installation /docker-entrypoint-hooks.d/pre-upgrade /docker-entrypoint-hooks.d/post-upgrade /docker-entrypoint-hooks.d/before-starting; chown -R www-data:root /var/www; chmod -R g=u /var/www # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV NEXTCLOUD_VERSION=32.0.0
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; fetchDeps=" gnupg dirmngr "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps; curl -fsSL -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 28806A878AE423A28372792ED75899B9A724937A; gpg --batch --verify nextcloud.tar.bz2.asc nextcloud.tar.bz2; tar -xjf nextcloud.tar.bz2 -C /usr/src/; gpgconf --kill all; rm nextcloud.tar.bz2.asc nextcloud.tar.bz2; rm -rf "$GNUPGHOME" /usr/src/nextcloud/updater; mkdir -p /usr/src/nextcloud/data; mkdir -p /usr/src/nextcloud/custom_apps; chmod +x /usr/src/nextcloud/occ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY *.sh upgrade.exclude / # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY config/* /usr/src/nextcloud/config/ # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/entrypoint.sh"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC
464 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
NEXTCLOUD_VERSION32.0.0
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_MEMORY_LIMIT512M
PHP_OPCACHE_MEMORY_CONSUMPTION128
PHP_SHA2562f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
PHP_UPLOAD_LIMIT512M
PHP_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz
PHP_VERSION8.3.26
[#000] sha256:389bac9f76fa529ccf801fd7c9cb260ecee27d208221c25004185ab22936c4d4 - 5.74% (26.7 MB)
[#001] sha256:4c9f7be70d8aec53fe4b5b5e1880b43d7446ae954c7ab9ac25480306eb23c7fe - 0.0% (224 Bytes)
[#002] sha256:3d53556343b843544753f61f19b5c3df753cc2c50902a13ae1599831fbea2b45 - 19.5% (90.5 MB)
[#003] sha256:18a2543a05cc0ee205d73225a690b945a813fb343611ca780c6406a762d9a546 - 0.0% (225 Bytes)
[#004] sha256:dac661e73ab9874a9cb3d39df453b4cf4484f9b4e09554b2c4504dea971b20fb - 2.62% (12.1 MB)
[#005] sha256:c436eb9eec52c9c417963cc1f0ca881ac65ec224070686864bc8820d562fc5f1 - 0.0% (487 Bytes)
[#006] sha256:48e11cde63f44c73404122cef4f7f7aeda618a8330d7e34a03f354934f356848 - 2.2% (10.2 MB)
[#007] sha256:7df86d3c95d713a6b3d4cac66141cab511bf5fc719a83fc12c759ea419d0d324 - 0.0% (2.39 KB)
[#008] sha256:3adaf0eb198bd8ba24c4424496cad13e30b383bc0f7b61a31727afc22e352494 - 0.0% (250 Bytes)
[#009] sha256:50c231f74b4ac10d76e3d1169730e453ba29fd4b78319c345ba08a7dc61357e4 - 0.0% (246 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:392ac4e399f0e09231f0f02ae97f18f35359910fb7b17228cc101b7072d54e3f - 0.0% (8.96 KB)
[#012] sha256:a553b6aa9ff58a3519634e28d5799ee786efba67535175cdc9b58b13bd6816e5 - 4.14% (19.2 MB)
[#013] sha256:e22fa13de65ed8ddc38ce92332cdc7d60648ae6803d37385202be33058e1d58e - 7.25% (33.6 MB)
[#014] sha256:14f0fb28789a2d3ddc9cf1b3da293d9b2f9cec6ef3054ff9f37b6a53bbba3d28 - 0.0% (793 Bytes)
[#015] sha256:456ddef70d774c2f1c8f823275b7ddba53b8086f8101d241dd4da32e32081025 - 58.55% (272 MB)
[#016] sha256:129b828ea399307b31f19ff3ab673ddbb79ed6359947ae1f7083c83909e486b1 - 0.0% (3.95 KB)
[#017] sha256:dd69a88b96b8aa5b5a7a0794ed08de5b3e122314b67f9d546370e8910bd9fc92 - 0.0% (2.3 KB)
# debian.sh --arch 'armel' out/ 'trixie' '@1760918400'
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.26
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.26.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.26.tar.xz.asc
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=2f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends busybox-static bzip2 libldap-common libmagickcore-7.q16-10-extra rsync ; apt-get dist-clean; mkdir -p /var/spool/cron/crontabs; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_MEMORY_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_UPLOAD_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libcurl4-openssl-dev libevent-dev libfreetype6-dev libgmp-dev libicu-dev libjpeg-dev libldap2-dev libmagickwand-dev libmemcached-dev libpng-dev libpq-dev libwebp-dev libxml2-dev libzip-dev ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ftp --with-openssl-dir=/usr; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bcmath exif ftp gd gmp intl ldap pcntl pdo_mysql pdo_pgsql sysvsem zip ; pecl install APCu-5.1.27; pecl install igbinary-3.2.16; pecl install imagick-3.8.0; pecl install memcached-3.3.0 --configureoptions 'enable-memcached-igbinary="yes"'; pecl install redis-6.2.0 --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"'; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.enable=1'; echo 'opcache.interned_strings_buffer=32'; echo 'opcache.max_accelerated_files=10000'; echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}'; echo 'opcache.save_comments=1'; echo 'opcache.revalidate_freq=60'; echo 'opcache.jit=1255'; echo 'opcache.jit_buffer_size=8M'; } > "${PHP_INI_DIR}/conf.d/opcache-recommended.ini"; echo 'apc.enable_cli=1' >> "${PHP_INI_DIR}/conf.d/docker-php-ext-apcu.ini"; { echo 'apc.serializer=igbinary'; echo 'session.serialize_handler=igbinary'; } >> "${PHP_INI_DIR}/conf.d/docker-php-ext-igbinary.ini"; { echo 'memory_limit=${PHP_MEMORY_LIMIT}'; echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; } > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; mkdir /var/www/data; mkdir -p /docker-entrypoint-hooks.d/pre-installation /docker-entrypoint-hooks.d/post-installation /docker-entrypoint-hooks.d/pre-upgrade /docker-entrypoint-hooks.d/post-upgrade /docker-entrypoint-hooks.d/before-starting; chown -R www-data:root /var/www; chmod -R g=u /var/www # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV NEXTCLOUD_VERSION=32.0.0
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; fetchDeps=" gnupg dirmngr "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps; curl -fsSL -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 28806A878AE423A28372792ED75899B9A724937A; gpg --batch --verify nextcloud.tar.bz2.asc nextcloud.tar.bz2; tar -xjf nextcloud.tar.bz2 -C /usr/src/; gpgconf --kill all; rm nextcloud.tar.bz2.asc nextcloud.tar.bz2; rm -rf "$GNUPGHOME" /usr/src/nextcloud/updater; mkdir -p /usr/src/nextcloud/data; mkdir -p /usr/src/nextcloud/custom_apps; chmod +x /usr/src/nextcloud/occ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY *.sh upgrade.exclude / # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY config/* /usr/src/nextcloud/config/ # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/entrypoint.sh"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC
451 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
NEXTCLOUD_VERSION32.0.0
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_MEMORY_LIMIT512M
PHP_OPCACHE_MEMORY_CONSUMPTION128
PHP_SHA2562f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
PHP_UPLOAD_LIMIT512M
PHP_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz
PHP_VERSION8.3.26
[#000] sha256:f157a4589edc88a89367c83c97b73205a4a80cffc6af7a71b789000a1bc8763e - 5.54% (25 MB)
[#001] sha256:78e0e99a66610ae6b5a739feda0effb9f4dacded3832a191cf5c4aa0bd2a9688 - 0.0% (225 Bytes)
[#002] sha256:4b9e3b9857eb403fa881752b07b541e0f674c9704963556f12807e2ef94e2c9c - 18.23% (82.2 MB)
[#003] sha256:9ea131e87215d51a20715ec429b2204903f5cdb02360afa797f9b19eb377d041 - 0.0% (223 Bytes)
[#004] sha256:7f3e5e5db798484c31c4dbaa5824eb38728d24c969e32bb52bdec0dd1ead09b5 - 2.69% (12.1 MB)
[#005] sha256:f667788faed65ee55296bdcdeb3d1908e8e1700be402bd1645299dab3bf325ab - 0.0% (489 Bytes)
[#006] sha256:531be9dbde46a8f6d5ae9031e6495ea1fb60ebce10d39eab17aebfac2a17dc3a - 2.13% (9.61 MB)
[#007] sha256:c75d68f8fd97ae7a29f96f11962c89841b78c48e320fe855ed89cf8c9e78e470 - 0.0% (2.39 KB)
[#008] sha256:24380747f0aed53fb435ffab6f0abe9fa3f87875f6c9420a89aea0c4577044b2 - 0.0% (252 Bytes)
[#009] sha256:73c5c3efff339650e14b66f926e135bc5acf07d671246f05421b3c91d0aa5f40 - 0.0% (247 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:c5801458b462b246dfe735c4a424984edb2c9a62931e5a90865534f2d06927ec - 0.0% (8.97 KB)
[#012] sha256:6a202a2b900d164fd26eb167889d75d0e706d8a1166802de12720f327235cf88 - 3.82% (17.2 MB)
[#013] sha256:866c07fb3341af3a6f762ae789dacb5740275eeaa529ab6087c6c1420d326326 - 7.36% (33.2 MB)
[#014] sha256:3d7cfdfb0a7e2fae93339d357a8849f77419422434503a1823a03b6f80f660a4 - 0.0% (795 Bytes)
[#015] sha256:25f76aeb452f7e964e9fdc28cca3f8a914e83c28f2173956b082be8f3a7a9f9b - 60.22% (272 MB)
[#016] sha256:40e5060f872542ff8e002118edb847acec6b6866d7a2eb27b461836f929279d2 - 0.0% (3.95 KB)
[#017] sha256:e7f6e7ad33a27b1b38bb9e22fa149519a338806d29a083b1b45950f111d4ee36 - 0.0% (2.3 KB)
# debian.sh --arch 'armhf' out/ 'trixie' '@1760918400'
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.26
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.26.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.26.tar.xz.asc
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=2f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends busybox-static bzip2 libldap-common libmagickcore-7.q16-10-extra rsync ; apt-get dist-clean; mkdir -p /var/spool/cron/crontabs; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_MEMORY_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_UPLOAD_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libcurl4-openssl-dev libevent-dev libfreetype6-dev libgmp-dev libicu-dev libjpeg-dev libldap2-dev libmagickwand-dev libmemcached-dev libpng-dev libpq-dev libwebp-dev libxml2-dev libzip-dev ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ftp --with-openssl-dir=/usr; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bcmath exif ftp gd gmp intl ldap pcntl pdo_mysql pdo_pgsql sysvsem zip ; pecl install APCu-5.1.27; pecl install igbinary-3.2.16; pecl install imagick-3.8.0; pecl install memcached-3.3.0 --configureoptions 'enable-memcached-igbinary="yes"'; pecl install redis-6.2.0 --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"'; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.enable=1'; echo 'opcache.interned_strings_buffer=32'; echo 'opcache.max_accelerated_files=10000'; echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}'; echo 'opcache.save_comments=1'; echo 'opcache.revalidate_freq=60'; echo 'opcache.jit=1255'; echo 'opcache.jit_buffer_size=8M'; } > "${PHP_INI_DIR}/conf.d/opcache-recommended.ini"; echo 'apc.enable_cli=1' >> "${PHP_INI_DIR}/conf.d/docker-php-ext-apcu.ini"; { echo 'apc.serializer=igbinary'; echo 'session.serialize_handler=igbinary'; } >> "${PHP_INI_DIR}/conf.d/docker-php-ext-igbinary.ini"; { echo 'memory_limit=${PHP_MEMORY_LIMIT}'; echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; } > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; mkdir /var/www/data; mkdir -p /docker-entrypoint-hooks.d/pre-installation /docker-entrypoint-hooks.d/post-installation /docker-entrypoint-hooks.d/pre-upgrade /docker-entrypoint-hooks.d/post-upgrade /docker-entrypoint-hooks.d/before-starting; chown -R www-data:root /var/www; chmod -R g=u /var/www # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV NEXTCLOUD_VERSION=32.0.0
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; fetchDeps=" gnupg dirmngr "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps; curl -fsSL -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 28806A878AE423A28372792ED75899B9A724937A; gpg --batch --verify nextcloud.tar.bz2.asc nextcloud.tar.bz2; tar -xjf nextcloud.tar.bz2 -C /usr/src/; gpgconf --kill all; rm nextcloud.tar.bz2.asc nextcloud.tar.bz2; rm -rf "$GNUPGHOME" /usr/src/nextcloud/updater; mkdir -p /usr/src/nextcloud/data; mkdir -p /usr/src/nextcloud/custom_apps; chmod +x /usr/src/nextcloud/occ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY *.sh upgrade.exclude / # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY config/* /usr/src/nextcloud/config/ # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/entrypoint.sh"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC
483 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
NEXTCLOUD_VERSION32.0.0
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_MEMORY_LIMIT512M
PHP_OPCACHE_MEMORY_CONSUMPTION128
PHP_SHA2562f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
PHP_UPLOAD_LIMIT512M
PHP_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz
PHP_VERSION8.3.26
[#000] sha256:a16e551192670581ec8359c70ab9eebf8f2af5468ffc79b3d4f9ce21b0366f47 - 5.95% (28.7 MB)
[#001] sha256:0a04b180ec0f45f3a575f4fba3f48dfcbb2bf7545ff22dc058c9e4089f6094e9 - 0.0% (224 Bytes)
[#002] sha256:d6b0cda731a3d35fd097020b1fc92b1f208f4ad46d322b353e70fd39cec5c306 - 21.74% (105 MB)
[#003] sha256:473754c68595b3e9217a66871120b332d394e64dd646f00f84ed9773f8929520 - 0.0% (225 Bytes)
[#004] sha256:ac4dde8c685ecdf6742115368dd2b77939ca25ebf2ef3d516fdb0d2bb29b68ff - 2.51% (12.1 MB)
[#005] sha256:489cba251df1c8e2a0247206b09d962ee290db0f976e9ec173f59d50bacdcd85 - 0.0% (486 Bytes)
[#006] sha256:ba19e8eb1af9cf0e84aad3796ee069d48c0e4147bdc03deec93874da59cb4cd0 - 2.35% (11.4 MB)
[#007] sha256:1d6555f9d94bd28bd41e0448c891e067c3516cf97bda0c7abd68a3233b0e6ef2 - 0.0% (2.39 KB)
[#008] sha256:e3af9ded3f85e8b2ac7428a45179ce6ce1ffd24cd1c930dfcf5c8fa657f45d56 - 0.0% (249 Bytes)
[#009] sha256:2f5bc2a9e5669f44bf643d6020e4a49f598dcb14128aef1fb3de12ba956d2380 - 0.0% (244 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:bed7a8ea77a5129941afd5b9e9d3235421b0f3c550d4655307fed06b21ddb0aa - 0.0% (8.97 KB)
[#012] sha256:18fe987a8373263d4fb4a7f2e3c933ed680a848154b84f998848c99d17611666 - 3.91% (18.9 MB)
[#013] sha256:3cedd46d7a0763c7015b5d4afde57a5bda91d9fd9c112d2b8a4719fef989b567 - 7.31% (35.3 MB)
[#014] sha256:4a19eb84cf78177317062ea65fd81e37344afa6a12b4b2f5a4d1110133b1a6c9 - 0.0% (791 Bytes)
[#015] sha256:34bd7eba1851ebafb69dc63676551cdb589dd3a7342fbd8b1d453be0cada4a0e - 56.23% (272 MB)
[#016] sha256:b5a88db6bd488372050e535b810e36d02cef630155911a7da4a2b5b1209a8d4e - 0.0% (3.95 KB)
[#017] sha256:b7e0593c57c0cae5fd39b50355cf8f71ed515d51f2e0654a1e43bb7f1106d5af - 0.0% (2.3 KB)
# debian.sh --arch 'arm64' out/ 'trixie' '@1760918400'
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.26
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.26.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.26.tar.xz.asc
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=2f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends busybox-static bzip2 libldap-common libmagickcore-7.q16-10-extra rsync ; apt-get dist-clean; mkdir -p /var/spool/cron/crontabs; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_MEMORY_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_UPLOAD_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libcurl4-openssl-dev libevent-dev libfreetype6-dev libgmp-dev libicu-dev libjpeg-dev libldap2-dev libmagickwand-dev libmemcached-dev libpng-dev libpq-dev libwebp-dev libxml2-dev libzip-dev ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ftp --with-openssl-dir=/usr; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bcmath exif ftp gd gmp intl ldap pcntl pdo_mysql pdo_pgsql sysvsem zip ; pecl install APCu-5.1.27; pecl install igbinary-3.2.16; pecl install imagick-3.8.0; pecl install memcached-3.3.0 --configureoptions 'enable-memcached-igbinary="yes"'; pecl install redis-6.2.0 --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"'; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.enable=1'; echo 'opcache.interned_strings_buffer=32'; echo 'opcache.max_accelerated_files=10000'; echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}'; echo 'opcache.save_comments=1'; echo 'opcache.revalidate_freq=60'; echo 'opcache.jit=1255'; echo 'opcache.jit_buffer_size=8M'; } > "${PHP_INI_DIR}/conf.d/opcache-recommended.ini"; echo 'apc.enable_cli=1' >> "${PHP_INI_DIR}/conf.d/docker-php-ext-apcu.ini"; { echo 'apc.serializer=igbinary'; echo 'session.serialize_handler=igbinary'; } >> "${PHP_INI_DIR}/conf.d/docker-php-ext-igbinary.ini"; { echo 'memory_limit=${PHP_MEMORY_LIMIT}'; echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; } > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; mkdir /var/www/data; mkdir -p /docker-entrypoint-hooks.d/pre-installation /docker-entrypoint-hooks.d/post-installation /docker-entrypoint-hooks.d/pre-upgrade /docker-entrypoint-hooks.d/post-upgrade /docker-entrypoint-hooks.d/before-starting; chown -R www-data:root /var/www; chmod -R g=u /var/www # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV NEXTCLOUD_VERSION=32.0.0
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; fetchDeps=" gnupg dirmngr "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps; curl -fsSL -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 28806A878AE423A28372792ED75899B9A724937A; gpg --batch --verify nextcloud.tar.bz2.asc nextcloud.tar.bz2; tar -xjf nextcloud.tar.bz2 -C /usr/src/; gpgconf --kill all; rm nextcloud.tar.bz2.asc nextcloud.tar.bz2; rm -rf "$GNUPGHOME" /usr/src/nextcloud/updater; mkdir -p /usr/src/nextcloud/data; mkdir -p /usr/src/nextcloud/custom_apps; chmod +x /usr/src/nextcloud/occ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY *.sh upgrade.exclude / # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY config/* /usr/src/nextcloud/config/ # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/entrypoint.sh"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC
491 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
NEXTCLOUD_VERSION32.0.0
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_MEMORY_LIMIT512M
PHP_OPCACHE_MEMORY_CONSUMPTION128
PHP_SHA2562f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
PHP_UPLOAD_LIMIT512M
PHP_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz
PHP_VERSION8.3.26
[#000] sha256:a9b4dd19a96be85b367998327f4288ed2fa8f174d1b3e8bea8ac7c2c626ec865 - 6.53% (32 MB)
[#001] sha256:1d9930d173c844c53a7c234fc6795612dd8a9cd3fa137cebec8570aa820f7779 - 0.0% (228 Bytes)
[#002] sha256:bf07ac4257b79ada16559cfa4a31502b1c711128c5199e235de1363c9bcbd2bf - 21.31% (105 MB)
[#003] sha256:87cff8614d84588c83a0d2abe18d46fc6b68b149ff9548d76e95cacef7b67548 - 0.0% (222 Bytes)
[#004] sha256:5bdee3020affabb0214e07795e045528639945cc32cd6190bd98829481e3651e - 2.48% (12.1 MB)
[#005] sha256:2986cf72558d9c1421ee0c4f379caeb5e84fdefa790e63e3a1e852696181f78f - 0.0% (489 Bytes)
[#006] sha256:0be1cfe2026505a28329c68d189a5e223a39de5ae7f82ae0d9a1593bec84dcbb - 2.42% (11.9 MB)
[#007] sha256:81b60e770440051544282e48fbfb3b9c3cdd1f2fc0dfb38140f5011273123fd3 - 0.0% (2.39 KB)
[#008] sha256:63072f9d313c05130effb0ea6b444fa0f8dd3a939cde33cde5193a54905cd159 - 0.0% (250 Bytes)
[#009] sha256:ee8cea4ba888a3b5ef3ff36d0967df38aaa767ef0a57758b9187da675c524373 - 0.0% (246 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:d9b223afc5c66e25c68c26c7da7101b2080dcf7a16955c63a675547ece497730 - 0.0% (8.97 KB)
[#012] sha256:6df15d83f7e3fb1ca35f97a37a64546753c54b2cb892f0e6dbae395f290bc0cc - 4.31% (21.1 MB)
[#013] sha256:e8b64506edbf33f5ea464ab526e71dbff8e5b2e9035397ec16c6418460a2abc8 - 7.56% (37.1 MB)
[#014] sha256:dc942a45e1b78f688571b39047702dbd01eb324be1fd5362701f1d481a9e42a7 - 0.0% (794 Bytes)
[#015] sha256:7da1545e38ed8fc0c5e3f6c49ae2ee6083dc208001f9a61249c2c75662b4fc5d - 55.4% (272 MB)
[#016] sha256:7aa7b25f22ad9928728c4e4e25160267178d4ad4fbaf861c7d73ab1050bd6e5e - 0.0% (3.95 KB)
[#017] sha256:15dbe2717b7c731e428a83fbc78171efeb243d89dc22c41aad60984b87750ed0 - 0.0% (2.3 KB)
# debian.sh --arch 'ppc64el' out/ 'trixie' '@1760918400'
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.26
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.26.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.26.tar.xz.asc
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=2f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends busybox-static bzip2 libldap-common libmagickcore-7.q16-10-extra rsync ; apt-get dist-clean; mkdir -p /var/spool/cron/crontabs; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_MEMORY_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_UPLOAD_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libcurl4-openssl-dev libevent-dev libfreetype6-dev libgmp-dev libicu-dev libjpeg-dev libldap2-dev libmagickwand-dev libmemcached-dev libpng-dev libpq-dev libwebp-dev libxml2-dev libzip-dev ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ftp --with-openssl-dir=/usr; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bcmath exif ftp gd gmp intl ldap pcntl pdo_mysql pdo_pgsql sysvsem zip ; pecl install APCu-5.1.27; pecl install igbinary-3.2.16; pecl install imagick-3.8.0; pecl install memcached-3.3.0 --configureoptions 'enable-memcached-igbinary="yes"'; pecl install redis-6.2.0 --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"'; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.enable=1'; echo 'opcache.interned_strings_buffer=32'; echo 'opcache.max_accelerated_files=10000'; echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}'; echo 'opcache.save_comments=1'; echo 'opcache.revalidate_freq=60'; echo 'opcache.jit=1255'; echo 'opcache.jit_buffer_size=8M'; } > "${PHP_INI_DIR}/conf.d/opcache-recommended.ini"; echo 'apc.enable_cli=1' >> "${PHP_INI_DIR}/conf.d/docker-php-ext-apcu.ini"; { echo 'apc.serializer=igbinary'; echo 'session.serialize_handler=igbinary'; } >> "${PHP_INI_DIR}/conf.d/docker-php-ext-igbinary.ini"; { echo 'memory_limit=${PHP_MEMORY_LIMIT}'; echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; } > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; mkdir /var/www/data; mkdir -p /docker-entrypoint-hooks.d/pre-installation /docker-entrypoint-hooks.d/post-installation /docker-entrypoint-hooks.d/pre-upgrade /docker-entrypoint-hooks.d/post-upgrade /docker-entrypoint-hooks.d/before-starting; chown -R www-data:root /var/www; chmod -R g=u /var/www # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV NEXTCLOUD_VERSION=32.0.0
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; fetchDeps=" gnupg dirmngr "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps; curl -fsSL -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 28806A878AE423A28372792ED75899B9A724937A; gpg --batch --verify nextcloud.tar.bz2.asc nextcloud.tar.bz2; tar -xjf nextcloud.tar.bz2 -C /usr/src/; gpgconf --kill all; rm nextcloud.tar.bz2.asc nextcloud.tar.bz2; rm -rf "$GNUPGHOME" /usr/src/nextcloud/updater; mkdir -p /usr/src/nextcloud/data; mkdir -p /usr/src/nextcloud/custom_apps; chmod +x /usr/src/nextcloud/occ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY *.sh upgrade.exclude / # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY config/* /usr/src/nextcloud/config/ # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/entrypoint.sh"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC
527 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
NEXTCLOUD_VERSION32.0.0
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_MEMORY_LIMIT512M
PHP_OPCACHE_MEMORY_CONSUMPTION128
PHP_SHA2562f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
PHP_UPLOAD_LIMIT512M
PHP_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz
PHP_VERSION8.3.26
[#000] sha256:ecc6f9aec21fb94a493c2875c244e720a2f7c6c034063ce87b2f5b6b46962ec9 - 5.12% (27 MB)
[#001] sha256:12e10c25f1d43bda19fe1addca79e55bd60680b6683c485853db1be0763dd7e2 - 0.0% (224 Bytes)
[#002] sha256:03438fb8247e71c15afcd0508b678af32b8a41a4cd64dda788e8224b32557902 - 26.53% (140 MB)
[#003] sha256:df117f051d654fe662d0af341155be2d955517920079566410cd20daddb0a237 - 0.0% (225 Bytes)
[#004] sha256:d23a10e562a5beefe6d246bd8f516e19664dc216c0efdc3fa8abb3b774cec399 - 2.31% (12.2 MB)
[#005] sha256:6fd69b9fd1b5a804d1d76d4259564b4bdc9a9b629b88477dd50d56f7e743cb7d - 0.0% (490 Bytes)
[#006] sha256:e7dd2654b56b8022d0fec48d8802695d43c6f942dab265d50b8924e26548e71c - 2.07% (10.9 MB)
[#007] sha256:b5607070cbcec5ca3c3f6b5d3f6e4a4eaf8e583c70240b6ae09d63d66535af6e - 0.0% (2.39 KB)
[#008] sha256:fa926a443734b05c8679fb547850d1a8195150303c711b9fb6bcd8f3fd8a72ae - 0.0% (251 Bytes)
[#009] sha256:b9f2556c328dc0cb4ac240bf994565c225a5563706f8f716e6227b0ca6981c3d - 0.0% (245 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:6969b975621e857c9ebf6153bca57fcd01098a4414a0abb91402b5a3d64b50a1 - 0.0% (8.97 KB)
[#012] sha256:454529a5683138ea143d04c1978b2b526fb286587b72625f44a99b9dccf59f0e - 3.54% (18.6 MB)
[#013] sha256:056ff65778191933ecf1cb6fab00cee0196484669880a9dc4874845a48812d31 - 8.87% (46.8 MB)
[#014] sha256:4e97f1126b0e6777998182e0f3831089d982c01d2bab2b75fd9a76fffa808383 - 0.0% (796 Bytes)
[#015] sha256:3f715594a27fff653f0faafab42ca295dcb801aeafb9d4888b1fcff59fa16d7a - 51.56% (272 MB)
[#016] sha256:3d94463043f0b2c1b19ae00c84583be43d99c92a499a0c20cb3b15bf73ebb4e6 - 0.0% (3.95 KB)
[#017] sha256:4c828efc1e5bb551d10d2fa31989c1034d3a8dacc39efdeb980249fc86786a6a - 0.0% (2.3 KB)
# debian.sh --arch 'riscv64' out/ 'trixie' '@1759104000'
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.26
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.26.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.26.tar.xz.asc
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=2f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends busybox-static bzip2 libldap-common libmagickcore-7.q16-10-extra rsync ; apt-get dist-clean; mkdir -p /var/spool/cron/crontabs; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_MEMORY_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_UPLOAD_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libcurl4-openssl-dev libevent-dev libfreetype6-dev libgmp-dev libicu-dev libjpeg-dev libldap2-dev libmagickwand-dev libmemcached-dev libpng-dev libpq-dev libwebp-dev libxml2-dev libzip-dev ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ftp --with-openssl-dir=/usr; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bcmath exif ftp gd gmp intl ldap pcntl pdo_mysql pdo_pgsql sysvsem zip ; pecl install APCu-5.1.27; pecl install igbinary-3.2.16; pecl install imagick-3.8.0; pecl install memcached-3.3.0 --configureoptions 'enable-memcached-igbinary="yes"'; pecl install redis-6.2.0 --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"'; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.enable=1'; echo 'opcache.interned_strings_buffer=32'; echo 'opcache.max_accelerated_files=10000'; echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}'; echo 'opcache.save_comments=1'; echo 'opcache.revalidate_freq=60'; echo 'opcache.jit=1255'; echo 'opcache.jit_buffer_size=8M'; } > "${PHP_INI_DIR}/conf.d/opcache-recommended.ini"; echo 'apc.enable_cli=1' >> "${PHP_INI_DIR}/conf.d/docker-php-ext-apcu.ini"; { echo 'apc.serializer=igbinary'; echo 'session.serialize_handler=igbinary'; } >> "${PHP_INI_DIR}/conf.d/docker-php-ext-igbinary.ini"; { echo 'memory_limit=${PHP_MEMORY_LIMIT}'; echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; } > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; mkdir /var/www/data; mkdir -p /docker-entrypoint-hooks.d/pre-installation /docker-entrypoint-hooks.d/post-installation /docker-entrypoint-hooks.d/pre-upgrade /docker-entrypoint-hooks.d/post-upgrade /docker-entrypoint-hooks.d/before-starting; chown -R www-data:root /var/www; chmod -R g=u /var/www # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV NEXTCLOUD_VERSION=32.0.0
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; fetchDeps=" gnupg dirmngr "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps; curl -fsSL -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 28806A878AE423A28372792ED75899B9A724937A; gpg --batch --verify nextcloud.tar.bz2.asc nextcloud.tar.bz2; tar -xjf nextcloud.tar.bz2 -C /usr/src/; gpgconf --kill all; rm nextcloud.tar.bz2.asc nextcloud.tar.bz2; rm -rf "$GNUPGHOME" /usr/src/nextcloud/updater; mkdir -p /usr/src/nextcloud/data; mkdir -p /usr/src/nextcloud/custom_apps; chmod +x /usr/src/nextcloud/occ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY *.sh upgrade.exclude / # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY config/* /usr/src/nextcloud/config/ # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/entrypoint.sh"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC
467 MB
1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
NEXTCLOUD_VERSION32.0.0
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_MEMORY_LIMIT512M
PHP_OPCACHE_MEMORY_CONSUMPTION128
PHP_SHA2562f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
PHP_UPLOAD_LIMIT512M
PHP_URLhttps://www.php.net/distributions/php-8.3.26.tar.xz
PHP_VERSION8.3.26
[#000] sha256:71dc03f1fd788f9fc2bbb931d3df17cbfaf0b486bdfb19f4e3b8792a206689a1 - 6.1% (28.5 MB)
[#001] sha256:1e6c3f4ad4e24c29ede95cbb6fb2aa2828df1b20348eed91dade18765579bc19 - 0.0% (224 Bytes)
[#002] sha256:b339ad9eb2dd636ee49d09322a8cc6b6ddb681a1c9115d8fdbd520598d3213bc - 18.91% (88.3 MB)
[#003] sha256:40db4669097adb199a40f97fcd445c22549de3dc01b5d9f3374183cb691b12ad - 0.0% (225 Bytes)
[#004] sha256:82d64912c56cc9fc82eb37d23e339902f3d7f86ca034bd40a7878e5aad52421f - 2.6% (12.1 MB)
[#005] sha256:02c69b2cc3de3fd7669f49546576dbd96c7c1621cb3762a39020df4179c4990d - 0.0% (489 Bytes)
[#006] sha256:580c89bbca76153b9d21cb46b139e59c586d54eb23242e533e1d31a8f6dff880 - 2.4% (11.2 MB)
[#007] sha256:4fe60d1c441151c52f358d5cb6e6eb0d1cc731611d42063784413acc3f64cf9b - 0.0% (2.4 KB)
[#008] sha256:124fcca2b0cbeacdba345af5a57885dfdb06d6759b2ed20bc2c4697018eddf9d - 0.0% (250 Bytes)
[#009] sha256:6c6cb078084cc5256f76265387b60a2de41b994ef07c2a7c084306e6ba172e27 - 0.0% (246 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:12967bda934dd7a4b7e85ec2d865bfba0010458ba45522c7d149714f50d74639 - 0.0% (8.97 KB)
[#012] sha256:59f9eb884d9e4f1ac08bad64e59438b86fb9b87cb1d94b7a6d18eb1866217d4b - 4.17% (19.5 MB)
[#013] sha256:b6e24a1879e8c22717c046c70d738d85e6b19198366180d8acc264966c652556 - 7.62% (35.6 MB)
[#014] sha256:a4e1da7984755f2557d0a9ec9cd52f74764fd51297afdbc2cb6720e1172eb8da - 0.0% (791 Bytes)
[#015] sha256:c273b3e6521940a4f728cc62ec13630981296bc0a68dab6810a894e2dd0028f0 - 58.2% (272 MB)
[#016] sha256:3042920d2ad77572184a285aabd6b718d43144233f98d3c1216d8212548806a1 - 0.0% (3.95 KB)
[#017] sha256:5a69a6734fb1aa928c6c6aa2ac984a5927d9623c023faee9174f2059277f8c12 - 0.0% (2.3 KB)
# debian.sh --arch 's390x' out/ 'trixie' '@1760918400'
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.26
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.26.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.26.tar.xz.asc
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=2f522eefa02c400c94610d07f25c4fd4c771f95e4a1f55102332ccb40663cbd2
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2025-09-25 23:53:24 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends busybox-static bzip2 libldap-common libmagickcore-7.q16-10-extra rsync ; apt-get dist-clean; mkdir -p /var/spool/cron/crontabs; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_MEMORY_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_UPLOAD_LIMIT=512M
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libcurl4-openssl-dev libevent-dev libfreetype6-dev libgmp-dev libicu-dev libjpeg-dev libldap2-dev libmagickwand-dev libmemcached-dev libpng-dev libpq-dev libwebp-dev libxml2-dev libzip-dev ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure ftp --with-openssl-dir=/usr; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" bcmath exif ftp gd gmp intl ldap pcntl pdo_mysql pdo_pgsql sysvsem zip ; pecl install APCu-5.1.27; pecl install igbinary-3.2.16; pecl install imagick-3.8.0; pecl install memcached-3.3.0 --configureoptions 'enable-memcached-igbinary="yes"'; pecl install redis-6.2.0 --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"'; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c { echo 'opcache.enable=1'; echo 'opcache.interned_strings_buffer=32'; echo 'opcache.max_accelerated_files=10000'; echo 'opcache.memory_consumption=${PHP_OPCACHE_MEMORY_CONSUMPTION}'; echo 'opcache.save_comments=1'; echo 'opcache.revalidate_freq=60'; echo 'opcache.jit=1255'; echo 'opcache.jit_buffer_size=8M'; } > "${PHP_INI_DIR}/conf.d/opcache-recommended.ini"; echo 'apc.enable_cli=1' >> "${PHP_INI_DIR}/conf.d/docker-php-ext-apcu.ini"; { echo 'apc.serializer=igbinary'; echo 'session.serialize_handler=igbinary'; } >> "${PHP_INI_DIR}/conf.d/docker-php-ext-igbinary.ini"; { echo 'memory_limit=${PHP_MEMORY_LIMIT}'; echo 'upload_max_filesize=${PHP_UPLOAD_LIMIT}'; echo 'post_max_size=${PHP_UPLOAD_LIMIT}'; } > "${PHP_INI_DIR}/conf.d/nextcloud.ini"; mkdir /var/www/data; mkdir -p /docker-entrypoint-hooks.d/pre-installation /docker-entrypoint-hooks.d/post-installation /docker-entrypoint-hooks.d/pre-upgrade /docker-entrypoint-hooks.d/post-upgrade /docker-entrypoint-hooks.d/before-starting; chown -R www-data:root /var/www; chmod -R g=u /var/www # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)VOLUME [/var/www/html]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENV NEXTCLOUD_VERSION=32.0.0
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -ex; fetchDeps=" gnupg dirmngr "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps; curl -fsSL -o nextcloud.tar.bz2 "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://download.nextcloud.com/server/releases/nextcloud-32.0.0.tar.bz2.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 28806A878AE423A28372792ED75899B9A724937A; gpg --batch --verify nextcloud.tar.bz2.asc nextcloud.tar.bz2; tar -xjf nextcloud.tar.bz2 -C /usr/src/; gpgconf --kill all; rm nextcloud.tar.bz2.asc nextcloud.tar.bz2; rm -rf "$GNUPGHOME" /usr/src/nextcloud/updater; mkdir -p /usr/src/nextcloud/data; mkdir -p /usr/src/nextcloud/custom_apps; chmod +x /usr/src/nextcloud/occ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY *.sh upgrade.exclude / # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)COPY config/* /usr/src/nextcloud/config/ # buildkit
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/entrypoint.sh"]
2025-09-28 00:39:46 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.