Namespace
library
Image / Tag
nextcloud:33.0.2-fpm-alpine
Content Digest
sha256:6c5792477bdccf4de3e80ea1438e62011229c21f6cce776f9933d3bab7a22396
Details
Created

2026-04-15 23:22:34 UTC

Size

365 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

NEXTCLOUD_VERSION

33.0.2

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.20.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_LIMIT

512M

PHP_OPCACHE_MEMORY_CONSUMPTION

128

PHP_SHA256

e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

PHP_UPLOAD_LIMIT

512M

PHP_URL

https://www.php.net/distributions/php-8.4.20.tar.xz

PHP_VERSION

8.4.20


Layers

[#000] sha256:1cf9b6fc5889fdc0b6b22dd2afeea78c7c7985e06a8208c77dc71888bcf17f12 - 0.96% (3.52 MB)

[#001] sha256:2c62319c64ecbc8864f653b3190fe2930cd0d7d729dd495e4f110d82beb5a8cf - 0.95% (3.46 MB)

[#002] sha256:1b237d5e55c87544bf498ed4aa2213ff7f3202b6e8ac11c0feb4eef6dc60561b - 0.0% (932 Bytes)

[#003] sha256:e7ce09e8975bb1abc7c27969ab796d05155e31bf9607dbc4d8d6b9869d6f42f2 - 0.0% (217 Bytes)

[#004] sha256:ba374fe7ae564b24b876c0e37c0e24ae10295833b103ec997c6f4d51b33a2618 - 3.58% (13.1 MB)

[#005] sha256:1068ef912fbd9b5cd23278793990a073d89428d5fffb6721e01c234f10214b9a - 0.0% (485 Bytes)

[#006] sha256:d69e808d6508c20e9c7b0fb968a894ef6f3a08518435e4e95508d14a683736b4 - 4.05% (14.8 MB)

[#007] sha256:a5e4133cfa5665ce34eef08043c23f2f0dba6eef44cfdd177b97398f5bba9523 - 0.0% (2.39 KB)

[#008] sha256:6536bae25de12f93460507a4870f8205b06a2eef459609bb23b73e1bd928c055 - 0.01% (22.9 KB)

[#009] sha256:ada671ef1cb78b082bc30975712e67aa71c719e0155289b05390c82eeca47ee7 - 0.01% (22.9 KB)

[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#011] sha256:0ad1be0d762f8603f63ac3e25a8914ead38c4303e1cdf95c608adcbae90b5d06 - 0.0% (9.04 KB)

[#012] sha256:253448bf93c5b3fc9a6b165d2fc22d076aeaa253b66568f1de949692b4d8d4aa - 11.52% (42.1 MB)

[#013] sha256:bc99ffe33d2fd844070ab68ea322a2dab0c94967b2816315fe8692d884f4f931 - 1.91% (6.95 MB)

[#014] sha256:bef407660bb0b36d96b38cd25736563f2849902eaa9086fc144ca1bd1a9450a9 - 0.0% (783 Bytes)

[#015] sha256:e1fa718cb405d783d33e4ca7f37622049518a06318cb864df0a83f853904d44c - 77.01% (281 MB)

[#016] sha256:740729a71dd33531ec43957d45df902b7b1bf5743ce7a322c5010226267fb2a3 - 0.0% (4.04 KB)

[#017] sha256:df28fe1c366034da6715194a32100f1458a09358017e9e43f202a8b195e45aba - 0.0% (2.3 KB)


History
2026-04-15 21:33:20 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.23.4-x86.tar.gz / # buildkit

2026-04-15 21:33:20 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-04-15 22:21:20 UTC (buildkit.dockerfile.v0)

ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

2026-04-15 22:21:20 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2026-04-15 22:21:20 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2026-04-15 22:21:20 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2026-04-15 22:21:20 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

2026-04-15 22:21:20 UTC (buildkit.dockerfile.v0)

ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 22:21:20 UTC (buildkit.dockerfile.v0)

ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 22:21:20 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2026-04-15 22:21:20 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2026-04-15 22:21:20 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.20

2026-04-15 22:21:20 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.4.20.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.4.20.tar.xz.asc

2026-04-15 22:21:20 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

2026-04-15 22:21:24 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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"; apk del --no-network .fetch-deps # buildkit

2026-04-15 22:21:24 UTC (buildkit.dockerfile.v0)

COPY docker-php-source /usr/local/bin/ # buildkit

2026-04-15 22:24:53 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2026-04-15 22:24:53 UTC (buildkit.dockerfile.v0)

COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit

2026-04-15 22:24:54 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable opcache # buildkit

2026-04-15 22:24:54 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable sodium # buildkit

2026-04-15 22:24:54 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2026-04-15 22:24:54 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2026-04-15 22:24:54 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd "${PHP_INI_DIR%/php}"; cp -v php-fpm.conf.default php-fpm.conf; cp -v php-fpm.d/www.conf.default php-fpm.d/www.conf; grep -E '^listen = 127.0.0.1:9000' php-fpm.d/www.conf; sed -ri 's/^(listen = 127.0.0.1:9000)/;\1/' php-fpm.d/www.conf; grep -E '^;listen = 127.0.0.1:9000' php-fpm.d/www.conf; { 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'; echo; echo '; default listen address for easy override in later php-fpm.d/*.conf files'; echo 'listen = 9000'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '; the [www] ini section below is for backwards compatibility and will be removed in 8.6+'; echo '[www]'; } | 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

2026-04-15 22:24:54 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2026-04-15 22:24:54 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2026-04-15 22:24:54 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2026-04-15 23:19:38 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache imagemagick imagemagick-pdf imagemagick-jpeg imagemagick-raw imagemagick-tiff imagemagick-heic imagemagick-webp imagemagick-svg rsync ; rm /var/spool/cron/crontabs/root; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit

2026-04-15 23:21:43 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS autoconf freetype-dev gmp-dev icu-dev imagemagick-dev libevent-dev libjpeg-turbo-dev libmemcached-dev libpng-dev libwebp-dev libxml2-dev libzip-dev openldap-dev pcre-dev postgresql-dev ; docker-php-ext-configure ftp --with-ftp-ssl; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap; 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.28; pecl install igbinary-3.2.16; pecl install imagick-3.8.1; pecl install --configureoptions 'enable-memcached-igbinary="yes"' memcached-3.4.0; pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"' redis-6.3.0; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .nextcloud-phpext-rundeps $runDeps; apk del --no-network .build-deps # buildkit

2026-04-15 23:21:43 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=512M

2026-04-15 23:21:43 UTC (buildkit.dockerfile.v0)

ENV PHP_UPLOAD_LIMIT=512M

2026-04-15 23:21:43 UTC (buildkit.dockerfile.v0)

ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128

2026-04-15 23:21:43 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

2026-04-15 23:21:43 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2026-04-15 23:21:43 UTC (buildkit.dockerfile.v0)

ENV NEXTCLOUD_VERSION=33.0.2

2026-04-15 23:22:33 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .fetch-deps bzip2 gnupg ; curl -fsSL -o nextcloud.tar.bz2 "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.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; apk del --no-network .fetch-deps # buildkit

2026-04-15 23:22:34 UTC (buildkit.dockerfile.v0)

COPY *.sh upgrade.exclude / # buildkit

2026-04-15 23:22:34 UTC (buildkit.dockerfile.v0)

COPY config/* /usr/src/nextcloud/config/ # buildkit

2026-04-15 23:22:34 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2026-04-15 23:22:34 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2026-04-15 21:43:34 UTC

Size

367 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

NEXTCLOUD_VERSION

33.0.2

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.20.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_LIMIT

512M

PHP_OPCACHE_MEMORY_CONSUMPTION

128

PHP_SHA256

e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

PHP_UPLOAD_LIMIT

512M

PHP_URL

https://www.php.net/distributions/php-8.4.20.tar.xz

PHP_VERSION

8.4.20


Layers

[#000] sha256:6a0ac1617861a677b045b7ff88545213ec31c0ff08763195a70a4a5adda577bb - 1.0% (3.69 MB)

[#001] sha256:61ef6327a484adad40c70cc6260e6c05b6496a95d7f17bc657f1608ef1d98c65 - 0.93% (3.42 MB)

[#002] sha256:df34a3b26ad831d1b88e28205d0697d293a6b9bd48bba6c0618d2a962f6b7ab5 - 0.0% (931 Bytes)

[#003] sha256:fd24741e080b2f5812c84cec27dcacc6faa6834e57a410d0498f39e3f589d63e - 0.0% (216 Bytes)

[#004] sha256:1eae9fc1b3d2fd71e5fe569524101eda391f21af0725aee92bb039cd3e3e2ec9 - 3.56% (13.1 MB)

[#005] sha256:949cfb46d077b27f03899c4f08b5ebd738a21e79448dda30c53e084e4d1ee1b0 - 0.0% (487 Bytes)

[#006] sha256:ec6b4452123be6c2fb9a132b567d46df619e884ca6553bb2e96c5073a44ac072 - 3.95% (14.5 MB)

[#007] sha256:df5ec8e36b924dcf98696ef1cf37b7f68a7521e815288899c6939d7bcddb5012 - 0.0% (2.39 KB)

[#008] sha256:5dbd3ef9745bc4e4b2d2170cdc2beda14f18aba440b3973124628fe77aeb08b0 - 0.01% (22.9 KB)

[#009] sha256:80181fe3ced17e0662a1f6639130ad39f9d44b208813f75cb2e77e3597e4da87 - 0.01% (22.9 KB)

[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#011] sha256:e5d9440a7ee03ff048797e0bc98dadb4bca879b081ddaf7f005cad80dbb7c779 - 0.0% (9.05 KB)

[#012] sha256:cbcffd26374eb8e09da1629ce9c1745e43d523aec507a1a0a8d76cea48ed12a5 - 12.14% (44.6 MB)

[#013] sha256:629d4c623772c9909b9a4846f0addc1fd5d328c14b1b10b00800098adb3d5e7b - 1.87% (6.87 MB)

[#014] sha256:964620c3091afa5249bca2dce2ebadbe25f9e499379e3dc1cad5035a94fc4d3e - 0.0% (790 Bytes)

[#015] sha256:59afd165f63120d1a0150add2122d575033b4f517ba394a72b530dc9428a6d8f - 76.53% (281 MB)

[#016] sha256:fd35ea174e62b39c1f1f8d3f132cc122c0327779afed789d45e8bf1a9b62849c - 0.0% (4.04 KB)

[#017] sha256:dc296243b52ff9e3d1d26faec53e884fa87ef93676649eb4c730b85848d1c104 - 0.0% (2.3 KB)


History
2026-04-15 20:01:40 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.23.4-x86_64.tar.gz / # buildkit

2026-04-15 20:01:40 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-04-15 20:18:07 UTC (buildkit.dockerfile.v0)

ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

2026-04-15 20:18:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2026-04-15 20:18:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2026-04-15 20:18:07 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2026-04-15 20:18:07 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

2026-04-15 20:18:07 UTC (buildkit.dockerfile.v0)

ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 20:18:07 UTC (buildkit.dockerfile.v0)

ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 20:18:07 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2026-04-15 20:18:07 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2026-04-15 20:18:07 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.20

2026-04-15 20:18:07 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.4.20.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.4.20.tar.xz.asc

2026-04-15 20:18:07 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

2026-04-15 20:18:11 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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"; apk del --no-network .fetch-deps # buildkit

2026-04-15 20:18:11 UTC (buildkit.dockerfile.v0)

COPY docker-php-source /usr/local/bin/ # buildkit

2026-04-15 20:21:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2026-04-15 20:21:26 UTC (buildkit.dockerfile.v0)

COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit

2026-04-15 20:21:27 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable opcache # buildkit

2026-04-15 20:21:27 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable sodium # buildkit

2026-04-15 20:21:27 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2026-04-15 20:21:27 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2026-04-15 20:21:27 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd "${PHP_INI_DIR%/php}"; cp -v php-fpm.conf.default php-fpm.conf; cp -v php-fpm.d/www.conf.default php-fpm.d/www.conf; grep -E '^listen = 127.0.0.1:9000' php-fpm.d/www.conf; sed -ri 's/^(listen = 127.0.0.1:9000)/;\1/' php-fpm.d/www.conf; grep -E '^;listen = 127.0.0.1:9000' php-fpm.d/www.conf; { 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'; echo; echo '; default listen address for easy override in later php-fpm.d/*.conf files'; echo 'listen = 9000'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '; the [www] ini section below is for backwards compatibility and will be removed in 8.6+'; echo '[www]'; } | 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

2026-04-15 20:21:27 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2026-04-15 20:21:27 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2026-04-15 20:21:27 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2026-04-15 21:41:18 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache imagemagick imagemagick-pdf imagemagick-jpeg imagemagick-raw imagemagick-tiff imagemagick-heic imagemagick-webp imagemagick-svg rsync ; rm /var/spool/cron/crontabs/root; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit

2026-04-15 21:43:03 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS autoconf freetype-dev gmp-dev icu-dev imagemagick-dev libevent-dev libjpeg-turbo-dev libmemcached-dev libpng-dev libwebp-dev libxml2-dev libzip-dev openldap-dev pcre-dev postgresql-dev ; docker-php-ext-configure ftp --with-ftp-ssl; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap; 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.28; pecl install igbinary-3.2.16; pecl install imagick-3.8.1; pecl install --configureoptions 'enable-memcached-igbinary="yes"' memcached-3.4.0; pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"' redis-6.3.0; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .nextcloud-phpext-rundeps $runDeps; apk del --no-network .build-deps # buildkit

2026-04-15 21:43:03 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=512M

2026-04-15 21:43:03 UTC (buildkit.dockerfile.v0)

ENV PHP_UPLOAD_LIMIT=512M

2026-04-15 21:43:03 UTC (buildkit.dockerfile.v0)

ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128

2026-04-15 21:43:03 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

2026-04-15 21:43:03 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2026-04-15 21:43:03 UTC (buildkit.dockerfile.v0)

ENV NEXTCLOUD_VERSION=33.0.2

2026-04-15 21:43:34 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .fetch-deps bzip2 gnupg ; curl -fsSL -o nextcloud.tar.bz2 "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.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; apk del --no-network .fetch-deps # buildkit

2026-04-15 21:43:34 UTC (buildkit.dockerfile.v0)

COPY *.sh upgrade.exclude / # buildkit

2026-04-15 21:43:34 UTC (buildkit.dockerfile.v0)

COPY config/* /usr/src/nextcloud/config/ # buildkit

2026-04-15 21:43:34 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2026-04-15 21:43:34 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2026-04-15 21:29:20 UTC

Size

358 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

NEXTCLOUD_VERSION

33.0.2

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.20.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_LIMIT

512M

PHP_OPCACHE_MEMORY_CONSUMPTION

128

PHP_SHA256

e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

PHP_UPLOAD_LIMIT

512M

PHP_URL

https://www.php.net/distributions/php-8.4.20.tar.xz

PHP_VERSION

8.4.20


Layers

[#000] sha256:c9cf8ef099e6e20ca4c7a2ae5b731a4beff960c0ffb88dd64fd6cdfdfe04839d - 0.95% (3.41 MB)

[#001] sha256:57a7c0fd01aa85d53a5cc462735eb1cd908410a74091bb824d85314c572a2e98 - 0.94% (3.38 MB)

[#002] sha256:f0990a4f4213cfb6f619b810861edf0e55ff77432a3a9995933d5e5e0f25b962 - 0.0% (930 Bytes)

[#003] sha256:97c4bf762147116095a30f26ea107900f28361d1ed6bcae3c7312e6e16503d86 - 0.0% (222 Bytes)

[#004] sha256:611c551c89d0a52d0c1fc742df48242b4822774aeb29969a04de89b831b84d2c - 3.65% (13.1 MB)

[#005] sha256:63a5ade602d1f9497bdb9f1408e2550053a861b3b97d3825ec1db2a3d0455503 - 0.0% (488 Bytes)

[#006] sha256:c56588352628b072b8435ef48b6525542156117d05dc3638e928af0056385309 - 3.64% (13 MB)

[#007] sha256:268fbbb176b6d34f57da556ff71567e0c3b3c8a511e1cf4ed34733eaba6187ce - 0.0% (2.39 KB)

[#008] sha256:ee7e012c1772b42d6b1fba0c2455214494ec06551fd4a67e2fcef1658f848615 - 0.01% (22.7 KB)

[#009] sha256:9bcc79448a1b097592a03822eba5c5d849e0e0adbd86a3409607fbc6466cf075 - 0.01% (22.7 KB)

[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#011] sha256:06e05eec180821df7fd20ebc57b940908cae6bb1d78f21f26ea0f3ff23119e46 - 0.0% (9.05 KB)

[#012] sha256:a1c33db53d4cd039dca2044ca60576b3aa6af6548e6ae1081fe51934eada9754 - 10.44% (37.4 MB)

[#013] sha256:9568f1beaecff7108bfd8ef81dfddd5424e6fdbc7fd7f020ecabf799458ed1a4 - 1.84% (6.58 MB)

[#014] sha256:0e8cd851fe04063ac85ec7e0b4b7f4b0142c6439d52595da1f9b16733d5997fc - 0.0% (792 Bytes)

[#015] sha256:ce42b584be107b1c8b57a48a0cbffa5fdfe21d5ab4d57296fa4257a54dbb08ff - 78.52% (281 MB)

[#016] sha256:1e8c304b2017f1821d54555d5faca82c262ee9d4450242a248b8846dc8a9f3a4 - 0.0% (4.04 KB)

[#017] sha256:65ebd30fdcdc66cb0fbf99775f3b313267b16120e63e79c13addad198f2c77da - 0.0% (2.3 KB)


History
2026-04-15 20:02:13 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.23.4-armhf.tar.gz / # buildkit

2026-04-15 20:02:13 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-04-15 20:21:52 UTC (buildkit.dockerfile.v0)

ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

2026-04-15 20:21:52 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2026-04-15 20:21:52 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2026-04-15 20:21:52 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2026-04-15 20:21:52 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

2026-04-15 20:21:52 UTC (buildkit.dockerfile.v0)

ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 20:21:52 UTC (buildkit.dockerfile.v0)

ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 20:21:52 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2026-04-15 20:21:52 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2026-04-15 20:21:52 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.20

2026-04-15 20:21:52 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.4.20.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.4.20.tar.xz.asc

2026-04-15 20:21:52 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

2026-04-15 20:21:56 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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"; apk del --no-network .fetch-deps # buildkit

2026-04-15 20:21:56 UTC (buildkit.dockerfile.v0)

COPY docker-php-source /usr/local/bin/ # buildkit

2026-04-15 20:24:55 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2026-04-15 20:24:55 UTC (buildkit.dockerfile.v0)

COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit

2026-04-15 20:24:55 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable opcache # buildkit

2026-04-15 20:24:56 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable sodium # buildkit

2026-04-15 20:24:56 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2026-04-15 20:24:56 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2026-04-15 20:24:56 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd "${PHP_INI_DIR%/php}"; cp -v php-fpm.conf.default php-fpm.conf; cp -v php-fpm.d/www.conf.default php-fpm.d/www.conf; grep -E '^listen = 127.0.0.1:9000' php-fpm.d/www.conf; sed -ri 's/^(listen = 127.0.0.1:9000)/;\1/' php-fpm.d/www.conf; grep -E '^;listen = 127.0.0.1:9000' php-fpm.d/www.conf; { 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'; echo; echo '; default listen address for easy override in later php-fpm.d/*.conf files'; echo 'listen = 9000'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '; the [www] ini section below is for backwards compatibility and will be removed in 8.6+'; echo '[www]'; } | 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

2026-04-15 20:24:56 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2026-04-15 20:24:56 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2026-04-15 20:24:56 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2026-04-15 21:25:44 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache imagemagick imagemagick-pdf imagemagick-jpeg imagemagick-raw imagemagick-tiff imagemagick-heic imagemagick-webp imagemagick-svg rsync ; rm /var/spool/cron/crontabs/root; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit

2026-04-15 21:28:31 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS autoconf freetype-dev gmp-dev icu-dev imagemagick-dev libevent-dev libjpeg-turbo-dev libmemcached-dev libpng-dev libwebp-dev libxml2-dev libzip-dev openldap-dev pcre-dev postgresql-dev ; docker-php-ext-configure ftp --with-ftp-ssl; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap; 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.28; pecl install igbinary-3.2.16; pecl install imagick-3.8.1; pecl install --configureoptions 'enable-memcached-igbinary="yes"' memcached-3.4.0; pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"' redis-6.3.0; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .nextcloud-phpext-rundeps $runDeps; apk del --no-network .build-deps # buildkit

2026-04-15 21:28:31 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=512M

2026-04-15 21:28:31 UTC (buildkit.dockerfile.v0)

ENV PHP_UPLOAD_LIMIT=512M

2026-04-15 21:28:31 UTC (buildkit.dockerfile.v0)

ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128

2026-04-15 21:28:31 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

2026-04-15 21:28:31 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2026-04-15 21:28:31 UTC (buildkit.dockerfile.v0)

ENV NEXTCLOUD_VERSION=33.0.2

2026-04-15 21:29:20 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .fetch-deps bzip2 gnupg ; curl -fsSL -o nextcloud.tar.bz2 "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.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; apk del --no-network .fetch-deps # buildkit

2026-04-15 21:29:20 UTC (buildkit.dockerfile.v0)

COPY *.sh upgrade.exclude / # buildkit

2026-04-15 21:29:20 UTC (buildkit.dockerfile.v0)

COPY config/* /usr/src/nextcloud/config/ # buildkit

2026-04-15 21:29:20 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2026-04-15 21:29:20 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2026-04-15 21:41:35 UTC

Size

356 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

NEXTCLOUD_VERSION

33.0.2

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.20.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_LIMIT

512M

PHP_OPCACHE_MEMORY_CONSUMPTION

128

PHP_SHA256

e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

PHP_UPLOAD_LIMIT

512M

PHP_URL

https://www.php.net/distributions/php-8.4.20.tar.xz

PHP_VERSION

8.4.20


Layers

[#000] sha256:c160e404c59d6d30c66a0d74bbd17337f178f5d898a9908e18c71ce3bbe28c99 - 0.88% (3.13 MB)

[#001] sha256:ed1b303a0989ba45e4f7b30cb9937c77a13a6d2c7ecd4eb8917f1512079f9f97 - 0.9% (3.19 MB)

[#002] sha256:bdfb6dec2dbf14603e2027ed5b971b0cded429fa6c207d9d90b199acc9cb3f9f - 0.0% (931 Bytes)

[#003] sha256:6aae7b5f922f713096ada0c57083da1371a86516392d3d545429f9e6f086cfc1 - 0.0% (217 Bytes)

[#004] sha256:7dd82f5c870f06ad0977d75bfd5f221698844492f83e81d648b6df4d92191d57 - 3.68% (13.1 MB)

[#005] sha256:319ee333590a57384eec8d838e3097a7bbbaf98511fa5f754866f9c060f4ee53 - 0.0% (488 Bytes)

[#006] sha256:9f6db70784fe0b64129cd81fcc768162b61cfcfc6046390d05cccaf7bc7b34a4 - 3.46% (12.3 MB)

[#007] sha256:e1a2b25dcc6fc43cce4d7cb7527e44400765b559a9be6f70a9f0b870f5431a16 - 0.0% (2.39 KB)

[#008] sha256:4fc4e71b3774288941b5f1bfc7d26b51a56816bc620b4dc0adda2a995fe29d10 - 0.01% (22.7 KB)

[#009] sha256:17c5dbac3789d20b6f7fdf3f3626bf3319aed3094a4b8438530220ba321dbfbf - 0.01% (22.7 KB)

[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#011] sha256:639c39b81bd3ed013ae106fd28f7de2a7f5a334afda4037ae7ad637f3deab270 - 0.0% (9.05 KB)

[#012] sha256:c6571456f1875d7a766898ab8a1b0b4c06c62aff580b12e44d797799bbe0e59e - 10.15% (36.1 MB)

[#013] sha256:d90a8d44d6664714e768fa15a4bdb3518e6c99428802e75c818257e97f2382ed - 1.86% (6.61 MB)

[#014] sha256:9042b0a4a8cb3b74eb355aac9ca073010078d9fc862f030295fed9e3febfaac7 - 0.0% (782 Bytes)

[#015] sha256:0020d73676b0522c062d40c5f7214cc8d211760596f309734d122537b1530bc3 - 79.06% (281 MB)

[#016] sha256:bfc087a4d1d4c5b9390c4ad1bec3fb9cb10a39b013ae35651bdcf80f99cf2ac1 - 0.0% (4.04 KB)

[#017] sha256:cb9f2a491301c73bf6e29466ffc4c8bf48d2fbd7ba4693f83e6d5dbf824d1ca9 - 0.0% (2.3 KB)


History
2026-04-15 20:01:47 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.23.4-armv7.tar.gz / # buildkit

2026-04-15 20:01:47 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-04-15 20:21:16 UTC (buildkit.dockerfile.v0)

ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

2026-04-15 20:21:16 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2026-04-15 20:21:16 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2026-04-15 20:21:16 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2026-04-15 20:21:16 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

2026-04-15 20:21:16 UTC (buildkit.dockerfile.v0)

ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 20:21:16 UTC (buildkit.dockerfile.v0)

ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 20:21:16 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2026-04-15 20:21:16 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2026-04-15 20:21:16 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.20

2026-04-15 20:21:16 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.4.20.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.4.20.tar.xz.asc

2026-04-15 20:21:16 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

2026-04-15 20:21:20 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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"; apk del --no-network .fetch-deps # buildkit

2026-04-15 20:21:20 UTC (buildkit.dockerfile.v0)

COPY docker-php-source /usr/local/bin/ # buildkit

2026-04-15 20:24:23 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2026-04-15 20:24:23 UTC (buildkit.dockerfile.v0)

COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit

2026-04-15 20:24:24 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable opcache # buildkit

2026-04-15 20:24:24 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable sodium # buildkit

2026-04-15 20:24:24 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2026-04-15 20:24:24 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2026-04-15 20:24:24 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd "${PHP_INI_DIR%/php}"; cp -v php-fpm.conf.default php-fpm.conf; cp -v php-fpm.d/www.conf.default php-fpm.d/www.conf; grep -E '^listen = 127.0.0.1:9000' php-fpm.d/www.conf; sed -ri 's/^(listen = 127.0.0.1:9000)/;\1/' php-fpm.d/www.conf; grep -E '^;listen = 127.0.0.1:9000' php-fpm.d/www.conf; { 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'; echo; echo '; default listen address for easy override in later php-fpm.d/*.conf files'; echo 'listen = 9000'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '; the [www] ini section below is for backwards compatibility and will be removed in 8.6+'; echo '[www]'; } | 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

2026-04-15 20:24:24 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2026-04-15 20:24:24 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2026-04-15 20:24:24 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2026-04-15 21:38:06 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache imagemagick imagemagick-pdf imagemagick-jpeg imagemagick-raw imagemagick-tiff imagemagick-heic imagemagick-webp imagemagick-svg rsync ; rm /var/spool/cron/crontabs/root; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit

2026-04-15 21:40:54 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS autoconf freetype-dev gmp-dev icu-dev imagemagick-dev libevent-dev libjpeg-turbo-dev libmemcached-dev libpng-dev libwebp-dev libxml2-dev libzip-dev openldap-dev pcre-dev postgresql-dev ; docker-php-ext-configure ftp --with-ftp-ssl; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap; 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.28; pecl install igbinary-3.2.16; pecl install imagick-3.8.1; pecl install --configureoptions 'enable-memcached-igbinary="yes"' memcached-3.4.0; pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"' redis-6.3.0; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .nextcloud-phpext-rundeps $runDeps; apk del --no-network .build-deps # buildkit

2026-04-15 21:40:54 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=512M

2026-04-15 21:40:54 UTC (buildkit.dockerfile.v0)

ENV PHP_UPLOAD_LIMIT=512M

2026-04-15 21:40:54 UTC (buildkit.dockerfile.v0)

ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128

2026-04-15 21:40:54 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

2026-04-15 21:40:54 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2026-04-15 21:40:54 UTC (buildkit.dockerfile.v0)

ENV NEXTCLOUD_VERSION=33.0.2

2026-04-15 21:41:34 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .fetch-deps bzip2 gnupg ; curl -fsSL -o nextcloud.tar.bz2 "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.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; apk del --no-network .fetch-deps # buildkit

2026-04-15 21:41:35 UTC (buildkit.dockerfile.v0)

COPY *.sh upgrade.exclude / # buildkit

2026-04-15 21:41:35 UTC (buildkit.dockerfile.v0)

COPY config/* /usr/src/nextcloud/config/ # buildkit

2026-04-15 21:41:35 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2026-04-15 21:41:35 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2026-04-15 21:56:49 UTC

Size

366 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

NEXTCLOUD_VERSION

33.0.2

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.20.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_LIMIT

512M

PHP_OPCACHE_MEMORY_CONSUMPTION

128

PHP_SHA256

e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

PHP_UPLOAD_LIMIT

512M

PHP_URL

https://www.php.net/distributions/php-8.4.20.tar.xz

PHP_VERSION

8.4.20


Layers

[#000] sha256:d17f077ada118cc762df373ff803592abf2dfa3ddafaa7381e364dd27a88fca7 - 1.09% (4.01 MB)

[#001] sha256:43f88c471740fcb5875464e516549da32c6c706f6987bc05fbbb6fd513a5802d - 0.94% (3.43 MB)

[#002] sha256:b992eab76c94334ac507bd24480ab30256763b2b3d9cbee2101f931af7891065 - 0.0% (930 Bytes)

[#003] sha256:df7e2ccbab69dff79d74edc28fd92dc771024392d7f27df7019a0996222edb8f - 0.0% (215 Bytes)

[#004] sha256:b1b53c8276cf1764bdbc2a8cc4bd82d17c9abcec1caa79e755d4bb8f6cd08689 - 3.57% (13.1 MB)

[#005] sha256:8d0c9424747f4f86a2634299b5c26a2827b3fee39c8784a2cffe3db0dcccfbf2 - 0.0% (487 Bytes)

[#006] sha256:d72a7eb2230420c7fcbaa60c52674a748d09f2ceec7a1d09bb2384d3e9e4dfb9 - 3.83% (14 MB)

[#007] sha256:25f864aebee5b8c62db6cc183f3cd9b7cda0fec6d388db0af242bb2496252e6b - 0.0% (2.39 KB)

[#008] sha256:8de20756a108dd2bb386335748415a405d248e1ab311f95e986cf3b417ed4163 - 0.01% (22.7 KB)

[#009] sha256:84abee5e477c51afcf6df1e875a6d0c7b98a1ceed1df6f1b371d717edad39b06 - 0.01% (22.7 KB)

[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#011] sha256:ce22a0940badf7da9b32f48d60afebdc96dc96c225a972f67e8092b3457344e6 - 0.0% (9.05 KB)

[#012] sha256:834347758b64dee636f6dffd6f8903641695cbc26e0021d05182e7edba7d3b8e - 11.86% (43.4 MB)

[#013] sha256:21f5f2b28bf41a5c14a94ff19d75d8af0bcfe2c76cfbab03b75db82f213e0033 - 1.86% (6.8 MB)

[#014] sha256:be9214e7605174b7dff644fb258210b8c13225637ff3cc7f28eee6f71bd80451 - 0.0% (789 Bytes)

[#015] sha256:f2322b28e01efd9ce805d9a15358c5da2a47e17bf8935f6be5abdf072eea7df6 - 76.83% (281 MB)

[#016] sha256:611fb738595a7cd532b676246a5e88c25cf2d3a88120926a0eb305621307f7a2 - 0.0% (4.04 KB)

[#017] sha256:22457669a92e4adc7069fa730210f363eb61940f63a9af72a40fd02809bea811 - 0.0% (2.3 KB)


History
2026-04-15 20:01:25 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.23.4-aarch64.tar.gz / # buildkit

2026-04-15 20:01:25 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-04-15 20:16:31 UTC (buildkit.dockerfile.v0)

ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

2026-04-15 20:16:31 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2026-04-15 20:16:31 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2026-04-15 20:16:31 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2026-04-15 20:16:31 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

2026-04-15 20:16:31 UTC (buildkit.dockerfile.v0)

ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 20:16:31 UTC (buildkit.dockerfile.v0)

ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 20:16:31 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2026-04-15 20:16:31 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2026-04-15 20:16:31 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.20

2026-04-15 20:16:31 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.4.20.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.4.20.tar.xz.asc

2026-04-15 20:16:31 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

2026-04-15 20:16:35 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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"; apk del --no-network .fetch-deps # buildkit

2026-04-15 20:16:35 UTC (buildkit.dockerfile.v0)

COPY docker-php-source /usr/local/bin/ # buildkit

2026-04-15 20:19:50 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2026-04-15 20:19:50 UTC (buildkit.dockerfile.v0)

COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit

2026-04-15 20:19:51 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable opcache # buildkit

2026-04-15 20:19:51 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable sodium # buildkit

2026-04-15 20:19:51 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2026-04-15 20:19:52 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2026-04-15 20:19:52 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd "${PHP_INI_DIR%/php}"; cp -v php-fpm.conf.default php-fpm.conf; cp -v php-fpm.d/www.conf.default php-fpm.d/www.conf; grep -E '^listen = 127.0.0.1:9000' php-fpm.d/www.conf; sed -ri 's/^(listen = 127.0.0.1:9000)/;\1/' php-fpm.d/www.conf; grep -E '^;listen = 127.0.0.1:9000' php-fpm.d/www.conf; { 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'; echo; echo '; default listen address for easy override in later php-fpm.d/*.conf files'; echo 'listen = 9000'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '; the [www] ini section below is for backwards compatibility and will be removed in 8.6+'; echo '[www]'; } | 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

2026-04-15 20:19:52 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2026-04-15 20:19:52 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2026-04-15 20:19:52 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2026-04-15 21:53:43 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache imagemagick imagemagick-pdf imagemagick-jpeg imagemagick-raw imagemagick-tiff imagemagick-heic imagemagick-webp imagemagick-svg rsync ; rm /var/spool/cron/crontabs/root; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit

2026-04-15 21:56:10 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS autoconf freetype-dev gmp-dev icu-dev imagemagick-dev libevent-dev libjpeg-turbo-dev libmemcached-dev libpng-dev libwebp-dev libxml2-dev libzip-dev openldap-dev pcre-dev postgresql-dev ; docker-php-ext-configure ftp --with-ftp-ssl; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap; 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.28; pecl install igbinary-3.2.16; pecl install imagick-3.8.1; pecl install --configureoptions 'enable-memcached-igbinary="yes"' memcached-3.4.0; pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"' redis-6.3.0; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .nextcloud-phpext-rundeps $runDeps; apk del --no-network .build-deps # buildkit

2026-04-15 21:56:11 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=512M

2026-04-15 21:56:11 UTC (buildkit.dockerfile.v0)

ENV PHP_UPLOAD_LIMIT=512M

2026-04-15 21:56:11 UTC (buildkit.dockerfile.v0)

ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128

2026-04-15 21:56:11 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

2026-04-15 21:56:11 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2026-04-15 21:56:11 UTC (buildkit.dockerfile.v0)

ENV NEXTCLOUD_VERSION=33.0.2

2026-04-15 21:56:49 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .fetch-deps bzip2 gnupg ; curl -fsSL -o nextcloud.tar.bz2 "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.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; apk del --no-network .fetch-deps # buildkit

2026-04-15 21:56:49 UTC (buildkit.dockerfile.v0)

COPY *.sh upgrade.exclude / # buildkit

2026-04-15 21:56:49 UTC (buildkit.dockerfile.v0)

COPY config/* /usr/src/nextcloud/config/ # buildkit

2026-04-15 21:56:49 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2026-04-15 21:56:49 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2026-04-16 01:34:42 UTC

Size

370 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

NEXTCLOUD_VERSION

33.0.2

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.20.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_LIMIT

512M

PHP_OPCACHE_MEMORY_CONSUMPTION

128

PHP_SHA256

e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

PHP_UPLOAD_LIMIT

512M

PHP_URL

https://www.php.net/distributions/php-8.4.20.tar.xz

PHP_VERSION

8.4.20


Layers

[#000] sha256:f14c55dbf69723970b011b8f4e3d231f8c307d6db3c80dafa55949ab7d3ea6d2 - 0.99% (3.65 MB)

[#001] sha256:5a59216db1edcf64b90905df63416f821bfacdba590544dcdb3c340ea538567c - 0.97% (3.59 MB)

[#002] sha256:14dbb332183b4f53eb48b10e61f11a67b23c5647a6901cf35be6037e209a0f51 - 0.0% (931 Bytes)

[#003] sha256:7fd758015c67cd7fae70202df89f7e42a01ff424cadf0cd92070805333b28821 - 0.0% (217 Bytes)

[#004] sha256:0370fd1370a54392f3444f77669b0c6655267b3ae193cf4de50a9871836636e7 - 3.53% (13.1 MB)

[#005] sha256:df5dbe897696d0b00e89cb8cca0978c45cfac755af8488d2743b4d1d0e8349b9 - 0.0% (490 Bytes)

[#006] sha256:9ed748167a4ba110e55bf836859404ed0d07c8012c0a38120a6a71eb553916df - 4.05% (15 MB)

[#007] sha256:5e837ab2c17d3b0ba367d2b928038674b2b671b658d5d1a8d2c7c6887717a6b7 - 0.0% (2.39 KB)

[#008] sha256:281189f4b70a3abcf43f4fbb010b7a91d30476a4f755d51d6b0dca53f4c4c6ba - 0.01% (22.7 KB)

[#009] sha256:ca0d3b6b2ac74c55e87998f3778dd5acb7b98b2ad5d5cda294b7423d2989ac16 - 0.01% (22.7 KB)

[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#011] sha256:5f01cc8a62ac057a37f08692e3d3ca7a19a514bc8c37ba1f784049e37952d7f6 - 0.0% (9.05 KB)

[#012] sha256:e21a35c0969eedd4b1ef336b08ecac69c29b51f28ff0070a99425b1e20a97cd1 - 12.59% (46.6 MB)

[#013] sha256:20b06f958291572e1367edebf25850d6687f7d51044b3d54cc00390ea437c12d - 1.91% (7.08 MB)

[#014] sha256:b7a71e1fbd5a931cc69c9df8ea572b720527e1d2c4b61db9f46995601ccf438c - 0.0% (789 Bytes)

[#015] sha256:089eb1af69854efd1b0013c38a72d68edc6a68939ae1143bb8a5e0bf5e97513f - 75.94% (281 MB)

[#016] sha256:f7285905f1397582c7e00ef5803abc8996f5e955348696dafb341ee8a098de1b - 0.0% (4.04 KB)

[#017] sha256:4d43ade64766bca62a03f0b0572343ff8e37460976a031ce26f79432e3a34ce2 - 0.0% (2.3 KB)


History
2026-04-15 20:00:31 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.23.4-ppc64le.tar.gz / # buildkit

2026-04-15 20:00:31 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-04-15 20:20:47 UTC (buildkit.dockerfile.v0)

ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

2026-04-15 20:20:47 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2026-04-15 20:20:47 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2026-04-15 20:20:47 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2026-04-15 20:20:47 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

2026-04-15 20:20:47 UTC (buildkit.dockerfile.v0)

ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 20:20:47 UTC (buildkit.dockerfile.v0)

ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 20:20:47 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2026-04-15 20:20:47 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2026-04-15 20:20:47 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.20

2026-04-15 20:20:47 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.4.20.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.4.20.tar.xz.asc

2026-04-15 20:20:47 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

2026-04-15 20:26:57 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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"; apk del --no-network .fetch-deps # buildkit

2026-04-15 20:27:00 UTC (buildkit.dockerfile.v0)

COPY docker-php-source /usr/local/bin/ # buildkit

2026-04-15 20:37:57 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2026-04-15 20:37:57 UTC (buildkit.dockerfile.v0)

COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit

2026-04-15 20:37:58 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable opcache # buildkit

2026-04-15 20:38:00 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable sodium # buildkit

2026-04-15 20:38:00 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2026-04-15 20:38:00 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2026-04-15 20:38:00 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd "${PHP_INI_DIR%/php}"; cp -v php-fpm.conf.default php-fpm.conf; cp -v php-fpm.d/www.conf.default php-fpm.d/www.conf; grep -E '^listen = 127.0.0.1:9000' php-fpm.d/www.conf; sed -ri 's/^(listen = 127.0.0.1:9000)/;\1/' php-fpm.d/www.conf; grep -E '^;listen = 127.0.0.1:9000' php-fpm.d/www.conf; { 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'; echo; echo '; default listen address for easy override in later php-fpm.d/*.conf files'; echo 'listen = 9000'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '; the [www] ini section below is for backwards compatibility and will be removed in 8.6+'; echo '[www]'; } | 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

2026-04-15 20:38:00 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2026-04-15 20:38:00 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2026-04-15 20:38:00 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2026-04-16 01:29:35 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache imagemagick imagemagick-pdf imagemagick-jpeg imagemagick-raw imagemagick-tiff imagemagick-heic imagemagick-webp imagemagick-svg rsync ; rm /var/spool/cron/crontabs/root; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit

2026-04-16 01:33:42 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS autoconf freetype-dev gmp-dev icu-dev imagemagick-dev libevent-dev libjpeg-turbo-dev libmemcached-dev libpng-dev libwebp-dev libxml2-dev libzip-dev openldap-dev pcre-dev postgresql-dev ; docker-php-ext-configure ftp --with-ftp-ssl; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap; 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.28; pecl install igbinary-3.2.16; pecl install imagick-3.8.1; pecl install --configureoptions 'enable-memcached-igbinary="yes"' memcached-3.4.0; pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"' redis-6.3.0; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .nextcloud-phpext-rundeps $runDeps; apk del --no-network .build-deps # buildkit

2026-04-16 01:33:43 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=512M

2026-04-16 01:33:43 UTC (buildkit.dockerfile.v0)

ENV PHP_UPLOAD_LIMIT=512M

2026-04-16 01:33:43 UTC (buildkit.dockerfile.v0)

ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128

2026-04-16 01:33:43 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

2026-04-16 01:33:43 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2026-04-16 01:33:43 UTC (buildkit.dockerfile.v0)

ENV NEXTCLOUD_VERSION=33.0.2

2026-04-16 01:34:38 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .fetch-deps bzip2 gnupg ; curl -fsSL -o nextcloud.tar.bz2 "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.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; apk del --no-network .fetch-deps # buildkit

2026-04-16 01:34:39 UTC (buildkit.dockerfile.v0)

COPY *.sh upgrade.exclude / # buildkit

2026-04-16 01:34:42 UTC (buildkit.dockerfile.v0)

COPY config/* /usr/src/nextcloud/config/ # buildkit

2026-04-16 01:34:42 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2026-04-16 01:34:42 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2026-04-18 01:47:18 UTC

Size

363 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

NEXTCLOUD_VERSION

33.0.2

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.20.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_LIMIT

512M

PHP_OPCACHE_MEMORY_CONSUMPTION

128

PHP_SHA256

e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

PHP_UPLOAD_LIMIT

512M

PHP_URL

https://www.php.net/distributions/php-8.4.20.tar.xz

PHP_VERSION

8.4.20


Layers

[#000] sha256:352acc3ce0e18a8eecba8cebabbfac8f5d264e89513a883c1566d91d15491462 - 0.94% (3.42 MB)

[#001] sha256:78828518b8b5af0bc74ba3bd169a5c835b32f2a1452a7cd03ad8117a0128165b - 0.98% (3.56 MB)

[#002] sha256:c1e1c9b4ddefe159b602dd6cdf3bcfff1bf48c922a0f1047bb5402dc2c6c988b - 0.0% (933 Bytes)

[#003] sha256:5b2a62067bd9660d4987f0df8c18a9ac2818a33d0443ac9c5c806eb7925b9957 - 0.0% (222 Bytes)

[#004] sha256:07b4fa4e03a41893883792ee4048e5be20691de7211e35a2a172723216fa8a57 - 3.61% (13.1 MB)

[#005] sha256:476302825d394ab9e227dbc6c9b962133bd1e7955ae20467d45109b6fcf1a7b1 - 0.0% (490 Bytes)

[#006] sha256:d3e6b11a11df7b142f2f72f47441134f2dea9f81752b8af4643ad157bd4f7ea1 - 3.8% (13.8 MB)

[#007] sha256:ccddcff8df9f124f53d7f0c3cd362f4e501eb585260cb68aab0946a400e49c17 - 0.0% (2.4 KB)

[#008] sha256:fd51b4405f9696a0061622be43058dd51c509ce8944908208539350d5bd6d897 - 0.01% (22.7 KB)

[#009] sha256:19640a83bf529fc44644d01cb849e5881a0806e197267c01ed234cb601e01408 - 0.01% (22.7 KB)

[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#011] sha256:ddfc73f78721d63719063106d8bd4e69aba98677503906be7d7cdd6efb9bff6d - 0.0% (9.05 KB)

[#012] sha256:baf25b42f2cbb9fe9122fcd8cbe2b89ee3d6de8bb4ce2690bd0d6bf41325db30 - 11.21% (40.7 MB)

[#013] sha256:bf96e227ac349bc37dfa661e4577a0cf9a055076b75f3d3adfcb53da4b78685a - 1.93% (6.98 MB)

[#014] sha256:6079be8832b6a7ead261ba8f94a49e64c38f68981bd3bdaa6c69e524d60f4867 - 0.0% (785 Bytes)

[#015] sha256:be7c69cbe0f316a8a11a41066704cb266e192e37c3da24ac9e6649a6079a33a1 - 77.51% (281 MB)

[#016] sha256:464618cba0f6e560d6b7f0509783ac7ab0c6970b9108a615de654f43b01c857a - 0.0% (4.03 KB)

[#017] sha256:d7ddbce2ef6aabba8bc0961fc5930b7e5669c9b2b0f38d2f73870e5a49b79aa8 - 0.0% (2.3 KB)


History
2026-04-15 20:30:47 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.23.4-riscv64.tar.gz / # buildkit

2026-04-15 20:30:47 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-04-16 00:30:18 UTC (buildkit.dockerfile.v0)

ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

2026-04-16 00:30:18 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2026-04-16 00:30:18 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2026-04-16 00:30:18 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2026-04-16 00:30:18 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

2026-04-16 00:30:18 UTC (buildkit.dockerfile.v0)

ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-16 00:30:18 UTC (buildkit.dockerfile.v0)

ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-16 00:30:18 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2026-04-16 00:30:18 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2026-04-16 00:30:18 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.20

2026-04-16 00:30:18 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.4.20.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.4.20.tar.xz.asc

2026-04-16 00:30:18 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

2026-04-16 03:22:37 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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"; apk del --no-network .fetch-deps # buildkit

2026-04-16 03:22:38 UTC (buildkit.dockerfile.v0)

COPY docker-php-source /usr/local/bin/ # buildkit

2026-04-16 05:19:34 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2026-04-16 05:19:34 UTC (buildkit.dockerfile.v0)

COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit

2026-04-16 05:19:39 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable opcache # buildkit

2026-04-16 05:19:44 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable sodium # buildkit

2026-04-16 05:19:44 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2026-04-16 05:19:44 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2026-04-16 05:19:44 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd "${PHP_INI_DIR%/php}"; cp -v php-fpm.conf.default php-fpm.conf; cp -v php-fpm.d/www.conf.default php-fpm.d/www.conf; grep -E '^listen = 127.0.0.1:9000' php-fpm.d/www.conf; sed -ri 's/^(listen = 127.0.0.1:9000)/;\1/' php-fpm.d/www.conf; grep -E '^;listen = 127.0.0.1:9000' php-fpm.d/www.conf; { 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'; echo; echo '; default listen address for easy override in later php-fpm.d/*.conf files'; echo 'listen = 9000'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '; the [www] ini section below is for backwards compatibility and will be removed in 8.6+'; echo '[www]'; } | 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

2026-04-16 05:19:44 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2026-04-16 05:19:44 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2026-04-16 05:19:44 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2026-04-18 01:15:47 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache imagemagick imagemagick-pdf imagemagick-jpeg imagemagick-raw imagemagick-tiff imagemagick-heic imagemagick-webp imagemagick-svg rsync ; rm /var/spool/cron/crontabs/root; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit

2026-04-18 01:43:28 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS autoconf freetype-dev gmp-dev icu-dev imagemagick-dev libevent-dev libjpeg-turbo-dev libmemcached-dev libpng-dev libwebp-dev libxml2-dev libzip-dev openldap-dev pcre-dev postgresql-dev ; docker-php-ext-configure ftp --with-ftp-ssl; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap; 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.28; pecl install igbinary-3.2.16; pecl install imagick-3.8.1; pecl install --configureoptions 'enable-memcached-igbinary="yes"' memcached-3.4.0; pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"' redis-6.3.0; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .nextcloud-phpext-rundeps $runDeps; apk del --no-network .build-deps # buildkit

2026-04-18 01:43:28 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=512M

2026-04-18 01:43:28 UTC (buildkit.dockerfile.v0)

ENV PHP_UPLOAD_LIMIT=512M

2026-04-18 01:43:28 UTC (buildkit.dockerfile.v0)

ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128

2026-04-18 01:43:28 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

2026-04-18 01:43:28 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2026-04-18 01:43:28 UTC (buildkit.dockerfile.v0)

ENV NEXTCLOUD_VERSION=33.0.2

2026-04-18 01:47:16 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .fetch-deps bzip2 gnupg ; curl -fsSL -o nextcloud.tar.bz2 "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.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; apk del --no-network .fetch-deps # buildkit

2026-04-18 01:47:18 UTC (buildkit.dockerfile.v0)

COPY *.sh upgrade.exclude / # buildkit

2026-04-18 01:47:18 UTC (buildkit.dockerfile.v0)

COPY config/* /usr/src/nextcloud/config/ # buildkit

2026-04-18 01:47:18 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2026-04-18 01:47:18 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2026-04-16 00:20:02 UTC

Size

369 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

NEXTCLOUD_VERSION

33.0.2

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.20.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_LIMIT

512M

PHP_OPCACHE_MEMORY_CONSUMPTION

128

PHP_SHA256

e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

PHP_UPLOAD_LIMIT

512M

PHP_URL

https://www.php.net/distributions/php-8.4.20.tar.xz

PHP_VERSION

8.4.20


Layers

[#000] sha256:13188190f2c53fa4e825ed24ee94f77177787a7ddde7687d5fadb7431f136a37 - 0.96% (3.55 MB)

[#001] sha256:816b342f273c114d9278090832c6b271fa133343c6cc14c8db27aad0433c7e9d - 0.98% (3.61 MB)

[#002] sha256:f40fd55f34e09a431ffb1541581fb4b2fad1c949d00d3718c054f6a585dedbbe - 0.0% (930 Bytes)

[#003] sha256:d93e9efb3f33cff64fedaa7b934bccba27be41ab8437362ef089937721401080 - 0.0% (217 Bytes)

[#004] sha256:3adefa755b1cbede3245ba350573476b4438d2c3a375101c6553fcde8df5d943 - 3.54% (13.1 MB)

[#005] sha256:31c4adca3f5704531af4fde0978117a15a124923c7e965172a5d0bb1d9fd326e - 0.0% (491 Bytes)

[#006] sha256:3e0defdbf2ba8615afbca8a0d1bfb648f2dbbd17603fe56d07c6ee5f8d4d0d2b - 3.86% (14.3 MB)

[#007] sha256:46f0d2a9c2acc44acc378d8d7aa59111cf8221ffd69d95d7a6999955f35fe09d - 0.0% (2.39 KB)

[#008] sha256:689498889cc21894baf940c5494c0f97d27acf8dd2b3ca587252825dda967ee4 - 0.01% (22.7 KB)

[#009] sha256:9694ba63a331296afb74fd3621407ce230372e05b0b2381d225713d7b781af44 - 0.01% (22.7 KB)

[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)

[#011] sha256:6618c20be4f399ddeebdf0c1a60c3656feb24e5eb57fbe81a52c49b0d9259a5e - 0.0% (9.05 KB)

[#012] sha256:98acf7800451ee71ed07b26f5981eeaf89aec0af42e2294096f8f3108ee83d3f - 12.54% (46.3 MB)

[#013] sha256:3e817a8dde0ef6af14f1587379c9e94fbe7a76415ebe4973776af0f7b5f31e6f - 1.89% (6.98 MB)

[#014] sha256:187fcccc13cbdaee629f82e9cd255e95ed92661e6eae2ec4c8547fb19e2c320a - 0.0% (789 Bytes)

[#015] sha256:343a64165aa81be1017ad3015d7e94090c8ae4375d9d8f71713ef9ecb48c33e9 - 76.2% (281 MB)

[#016] sha256:10c92b340092eb02fa61b751ebf6128fd211e3136da2ebad407e12fb12509788 - 0.0% (4.04 KB)

[#017] sha256:a7a2b5b037c6d30d4cc3991a3fd29c14e7d6e8b67e89303fc7bed1c4a945a663 - 0.0% (2.3 KB)


History
2026-04-15 20:00:34 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.23.4-s390x.tar.gz / # buildkit

2026-04-15 20:00:34 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2026-04-15 20:16:19 UTC (buildkit.dockerfile.v0)

ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

2026-04-15 20:16:19 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2026-04-15 20:16:19 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2026-04-15 20:16:19 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2026-04-15 20:16:19 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

2026-04-15 20:16:19 UTC (buildkit.dockerfile.v0)

ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 20:16:19 UTC (buildkit.dockerfile.v0)

ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2026-04-15 20:16:19 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2026-04-15 20:16:19 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2026-04-15 20:16:19 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.20

2026-04-15 20:16:19 UTC (buildkit.dockerfile.v0)

ENV PHP_URL=https://www.php.net/distributions/php-8.4.20.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.4.20.tar.xz.asc

2026-04-15 20:16:19 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=e454c6f7c89a42f41ebb06dc5c3578e8c8b5f1a3f0da6675665affab04e221f7

2026-04-15 20:18:34 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; 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"; apk del --no-network .fetch-deps # buildkit

2026-04-15 20:18:34 UTC (buildkit.dockerfile.v0)

COPY docker-php-source /usr/local/bin/ # buildkit

2026-04-15 20:26:21 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; 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)"; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --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; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2026-04-15 20:26:22 UTC (buildkit.dockerfile.v0)

COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit

2026-04-15 20:26:25 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable opcache # buildkit

2026-04-15 20:26:28 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c docker-php-ext-enable sodium # buildkit

2026-04-15 20:26:28 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2026-04-15 20:26:29 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2026-04-15 20:26:30 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd "${PHP_INI_DIR%/php}"; cp -v php-fpm.conf.default php-fpm.conf; cp -v php-fpm.d/www.conf.default php-fpm.d/www.conf; grep -E '^listen = 127.0.0.1:9000' php-fpm.d/www.conf; sed -ri 's/^(listen = 127.0.0.1:9000)/;\1/' php-fpm.d/www.conf; grep -E '^;listen = 127.0.0.1:9000' php-fpm.d/www.conf; { 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'; echo; echo '; default listen address for easy override in later php-fpm.d/*.conf files'; echo 'listen = 9000'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '; the [www] ini section below is for backwards compatibility and will be removed in 8.6+'; echo '[www]'; } | 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

2026-04-15 20:26:30 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2026-04-15 20:26:30 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2026-04-15 20:26:30 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2026-04-16 00:17:02 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache imagemagick imagemagick-pdf imagemagick-jpeg imagemagick-raw imagemagick-tiff imagemagick-heic imagemagick-webp imagemagick-svg rsync ; rm /var/spool/cron/crontabs/root; echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data # buildkit

2026-04-16 00:19:29 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS autoconf freetype-dev gmp-dev icu-dev imagemagick-dev libevent-dev libjpeg-turbo-dev libmemcached-dev libpng-dev libwebp-dev libxml2-dev libzip-dev openldap-dev pcre-dev postgresql-dev ; docker-php-ext-configure ftp --with-ftp-ssl; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-configure ldap; 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.28; pecl install igbinary-3.2.16; pecl install imagick-3.8.1; pecl install --configureoptions 'enable-memcached-igbinary="yes"' memcached-3.4.0; pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-zstd="yes" enable-redis-lz4="yes"' redis-6.3.0; docker-php-ext-enable apcu igbinary imagick memcached redis ; rm -r /tmp/pear; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-network --virtual .nextcloud-phpext-rundeps $runDeps; apk del --no-network .build-deps # buildkit

2026-04-16 00:19:29 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=512M

2026-04-16 00:19:29 UTC (buildkit.dockerfile.v0)

ENV PHP_UPLOAD_LIMIT=512M

2026-04-16 00:19:29 UTC (buildkit.dockerfile.v0)

ENV PHP_OPCACHE_MEMORY_CONSUMPTION=128

2026-04-16 00:19:29 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

2026-04-16 00:19:29 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2026-04-16 00:19:29 UTC (buildkit.dockerfile.v0)

ENV NEXTCLOUD_VERSION=33.0.2

2026-04-16 00:20:02 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; apk add --no-cache --virtual .fetch-deps bzip2 gnupg ; curl -fsSL -o nextcloud.tar.bz2 "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.tar.bz2"; curl -fsSL -o nextcloud.tar.bz2.asc "https://github.com/nextcloud-releases/server/releases/download/v33.0.2/nextcloud-33.0.2.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; apk del --no-network .fetch-deps # buildkit

2026-04-16 00:20:02 UTC (buildkit.dockerfile.v0)

COPY *.sh upgrade.exclude / # buildkit

2026-04-16 00:20:02 UTC (buildkit.dockerfile.v0)

COPY config/* /usr/src/nextcloud/config/ # buildkit

2026-04-16 00:20:02 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2026-04-16 00:20:02 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Danger Zone
Delete Tag

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.

Delete