2026-05-14 05:54:45 UTC
177 MB
/tmp/.composer
GPG_KEYS39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.31.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_SHA25695eae411d594fe6f6e5678b76645dc13ae47d3c0a5325c1d969b58dea56ee45a
PHP_URLhttps://www.php.net/distributions/php-8.2.31.tar.xz
PHP_VERSION8.2.31
[#000] sha256:57fb71246055257a374deb7564ceca10f43c2352572b501efc08add5d24ebb61 - 16.01% (28.4 MB)
[#001] sha256:55c83a3a383680230e9fea033b69c5d9f72dbe1ec990c01340a9e24c804eadc4 - 0.0% (226 Bytes)
[#002] sha256:218ef6f07cc82b6756f78b73613caf8e8d76ffc0ba94916d9cc87d9b6724a78c - 63.36% (112 MB)
[#003] sha256:4c445e431149c32e999b77cb275ff826e31107d446449bb8f86e95f98650839f - 0.0% (227 Bytes)
[#004] sha256:3c238a4fe2b432296130110882ff71e1a14dec334eee221225490637bb8ba1d3 - 6.62% (11.7 MB)
[#005] sha256:aafe82e84b3d9a9d6e0ee5121391fce32ac1357c54787008ad681669ee447fb1 - 0.0% (489 Bytes)
[#006] sha256:81688db68732875343204cb128f1550687e5a6e649a74dbe9d21d7410ccdd767 - 6.26% (11.1 MB)
[#007] sha256:e7e2bb3aac80864fd2e40225ffd1fc2239d7ef3d7bce880afd8f7ac274d1489b - 0.0% (2.4 KB)
[#008] sha256:bc29c6895cb7db7040d9f2f49ab2a646fc46532b0ddc06bf2bf4fd37a79526f7 - 0.0% (251 Bytes)
[#009] sha256:2056befccca7063931d094fc37b05e05df259e45b433d224acaece13c001ce50 - 0.0% (244 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:5cfd6d00765b87d7a009ca75c650df712178731d689cf25de7718f579a7a4927 - 0.0% (9.04 KB)
[#012] sha256:da21d7d9a2f1bf57558ef7ab7c1a97778922ef0f69e00355ab59fdee851680ce - 0.0% (296 Bytes)
[#013] sha256:6f62cce2c1a2453f6a69eb12fdc27d6d8f1c952727ac13ab105acbfc112f3011 - 0.0% (2.69 KB)
[#014] sha256:2b9dd9d9d70cf22a1de3c497948f157f0599f2ce9c8231f2f8ca4c01d68b2a36 - 0.02% (36.4 KB)
[#015] sha256:150126ab677a58bc3455dfcdc6dfb4983dc5e72281e46af8b30a985362b7faef - 7.27% (12.9 MB)
[#016] sha256:ad310dcdd40e73ee7b8a23fd3b64fd10b6ffaa8e10224d464951c35b0c3d804f - 0.43% (774 KB)
[#017] sha256:993fa259e0dac371efdb18d84e307f6eb5b271ada41f365c3f829b74456b20c0 - 0.02% (36.4 KB)
[#018] sha256:e60724549a747ef14cd9528e19357f4049fdbef355bd3b7d2ed09d1c7da5021c - 0.0% (736 Bytes)
[#019] sha256:7a99a091fbcd40689ac51f92010c576870b67b3cf59efc0a6bd3acc62815668f - 0.0% (93 Bytes)
# debian.sh --arch 'amd64' out/ 'trixie' '@1777939200'
2026-05-08 19:23:23 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2026-05-08 19:23:39 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2026-05-08 19:23:39 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
2026-05-08 19:23:39 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2026-05-08 19:23:39 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-05-08 19:23:39 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-05-08 19:23:39 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-05-08 19:23:39 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2026-05-08 19:23:39 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2026-05-08 19:23:39 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.31
2026-05-08 19:23:39 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.31.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.31.tar.xz.asc
2026-05-08 19:23:39 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=95eae411d594fe6f6e5678b76645dc13ae47d3c0a5325c1d969b58dea56ee45a
2026-05-08 19:30:31 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2026-05-08 19:30:31 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2026-05-08 19:32:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; 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 --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2026-05-08 19:32:58 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2026-05-08 19:32:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2026-05-08 19:32:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2026-05-08 19:32:58 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2026-05-08 19:32:58 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2026-05-08 19:32:58 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-05-08 19:32:58 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2026-05-08 19:32:58 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2026-05-08 19:32:58 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2026-05-14 05:54:35 UTC (buildkit.dockerfile.v0)COPY ./data/php-fpm.ini /etc/supervisor.d/php-fpm.ini # buildkit
2026-05-14 05:54:35 UTC (buildkit.dockerfile.v0)COPY ./data/supervisord.conf /etc/supervisord.conf # buildkit
2026-05-14 05:54:35 UTC (buildkit.dockerfile.v0)COPY ./data/install-php-extensions /usr/local/bin/ # buildkit
2026-05-14 05:54:44 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends supervisor && mkdir -p /var/log/supervisor /etc/supervisor/conf.d && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit
2026-05-14 05:54:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c curl -o /tmp/composer-setup.php https://getcomposer.org/installer && php /tmp/composer-setup.php --install-dir=/tmp && mv /tmp/composer.phar /usr/bin/composer && chmod +x /usr/bin/composer && rm -rf /tmp/composer-setup.php # buildkit
2026-05-14 05:54:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c chmod uga+x /usr/local/bin/install-php-extensions # buildkit
2026-05-14 05:54:45 UTC (buildkit.dockerfile.v0)ENV COMPOSER_HOME=/tmp/.composer
2026-05-14 05:54:45 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c usermod -u 1000 www-data && groupmod -g 1000 www-data # buildkit
2026-05-14 05:54:45 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["supervisord" "--nodaemon" "--configuration" "/etc/supervisord.conf"]
2026-05-14 05:54:45 UTC (buildkit.dockerfile.v0)WORKDIR /www
2026-05-14 05:55:50 UTC
141 MB
/tmp/.composer
GPG_KEYS39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.31.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_SHA25695eae411d594fe6f6e5678b76645dc13ae47d3c0a5325c1d969b58dea56ee45a
PHP_URLhttps://www.php.net/distributions/php-8.2.31.tar.xz
PHP_VERSION8.2.31
[#000] sha256:f1433620eadfdfe016c8054b954f619ae5bca159f35a9459c36a76d9ef4d39c3 - 17.68% (25 MB)
[#001] sha256:5966a6821d2cb6374d2839a7e961cbb1892564c0d798545ef33e5df0fe635460 - 0.0% (225 Bytes)
[#002] sha256:1a36261a7ae03991d8139b38ab28cb15d23a0211b2581fab73c0b800af44bd37 - 58.17% (82.3 MB)
[#003] sha256:3ae2210b4deaa2de42384de5edc871a35edb0e251ec376d85229162e0dfda3ed - 0.0% (224 Bytes)
[#004] sha256:9c2599f991900c07cd405608445cd05a1a0ee17c4e5210df23f03e63e9d94dd6 - 8.3% (11.7 MB)
[#005] sha256:7b2929be805bab38ed995128e188465a833aa71e39f252b47101dbcfa16d456b - 0.0% (488 Bytes)
[#006] sha256:853a13cf4b11cef31baf5d00500affede519c370a2ca07e4d96cecaee310528a - 6.65% (9.4 MB)
[#007] sha256:a51424951c823a1a66334ba7731c1726087b41dad0798f9505974cf7519e4137 - 0.0% (2.39 KB)
[#008] sha256:ab39142c0246a90441d31402e60813a5c4c292b912b6e2759344d1f85ad0684f - 0.0% (248 Bytes)
[#009] sha256:f1f8e052f1e55fc1e1a72688c625510fe52719594eb858cd3794dfd6028f52cb - 0.0% (243 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:4918cf82c2cf15f1309b4104ee87e8305ce9c6750371dfe2990fd07bf692f98f - 0.01% (9.04 KB)
[#012] sha256:a2176dfdad543b278a12a19475696cb4127d55c20b00a05bf3ac20b4f397f54d - 0.0% (298 Bytes)
[#013] sha256:dd6cc0b788f8577904dedc94b1dc1cb048bdfe20595ea10289671daa3460c1c6 - 0.0% (2.69 KB)
[#014] sha256:d763d204d4b73244aa2f8c72789afcebacf5ff7340388d1058a6d3a7fd1d47ce - 0.03% (36.4 KB)
[#015] sha256:3325e98ffd45460d089449a61446b9cade80b821768eeb16498dfc75b2bd8f6c - 8.6% (12.2 MB)
[#016] sha256:d04a27ea7e89f29e0004b2c92b6cd8ca2dc22d84f10209d7c86abcbbc07ba564 - 0.53% (774 KB)
[#017] sha256:34c1a2c85e937122767039b6ad4e78027476e580a7dc51903c49bf9a3f8c6bb5 - 0.03% (36.4 KB)
[#018] sha256:c4048eb55933cbb5b24698bb5e7a55319f8d94d320884b887090ec47fd140c7f - 0.0% (741 Bytes)
[#019] sha256:8ec98bac3a44dc7c28a672df652952f85a56c233bb0c65f721f0dee41bc8d131 - 0.0% (93 Bytes)
# debian.sh --arch 'armhf' out/ 'trixie' '@1777939200'
2026-05-08 19:26:01 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2026-05-08 19:26:18 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2026-05-08 19:26:18 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
2026-05-08 19:26:18 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2026-05-08 19:26: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-05-08 19:26:19 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-05-08 19:26:19 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-05-08 19:26:19 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2026-05-08 19:26:19 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2026-05-08 19:26:19 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.31
2026-05-08 19:26:19 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.31.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.31.tar.xz.asc
2026-05-08 19:26:19 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=95eae411d594fe6f6e5678b76645dc13ae47d3c0a5325c1d969b58dea56ee45a
2026-05-08 19:26:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2026-05-08 19:26:29 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2026-05-08 19:28:55 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; 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 --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2026-05-08 19:28:55 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2026-05-08 19:28:55 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2026-05-08 19:28:55 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2026-05-08 19:28:55 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2026-05-08 19:28:55 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2026-05-08 19:28:55 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-05-08 19:28:55 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2026-05-08 19:28:55 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2026-05-08 19:28:55 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2026-05-14 05:54:34 UTC (buildkit.dockerfile.v0)COPY ./data/php-fpm.ini /etc/supervisor.d/php-fpm.ini # buildkit
2026-05-14 05:54:35 UTC (buildkit.dockerfile.v0)COPY ./data/supervisord.conf /etc/supervisord.conf # buildkit
2026-05-14 05:54:35 UTC (buildkit.dockerfile.v0)COPY ./data/install-php-extensions /usr/local/bin/ # buildkit
2026-05-14 05:55:46 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends supervisor && mkdir -p /var/log/supervisor /etc/supervisor/conf.d && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit
2026-05-14 05:55:49 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c curl -o /tmp/composer-setup.php https://getcomposer.org/installer && php /tmp/composer-setup.php --install-dir=/tmp && mv /tmp/composer.phar /usr/bin/composer && chmod +x /usr/bin/composer && rm -rf /tmp/composer-setup.php # buildkit
2026-05-14 05:55:49 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c chmod uga+x /usr/local/bin/install-php-extensions # buildkit
2026-05-14 05:55:50 UTC (buildkit.dockerfile.v0)ENV COMPOSER_HOME=/tmp/.composer
2026-05-14 05:55:50 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c usermod -u 1000 www-data && groupmod -g 1000 www-data # buildkit
2026-05-14 05:55:50 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["supervisord" "--nodaemon" "--configuration" "/etc/supervisord.conf"]
2026-05-14 05:55:50 UTC (buildkit.dockerfile.v0)WORKDIR /www
2026-05-14 05:56:05 UTC
170 MB
/tmp/.composer
GPG_KEYS39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.31.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_SHA25695eae411d594fe6f6e5678b76645dc13ae47d3c0a5325c1d969b58dea56ee45a
PHP_URLhttps://www.php.net/distributions/php-8.2.31.tar.xz
PHP_VERSION8.2.31
[#000] sha256:9ebf9a1d0c9ca1bcb377e9dba38a3fdd3e89cf37164f4245286c24f8cd50a39e - 16.88% (28.7 MB)
[#001] sha256:839fbf070c8a8253ac6d1c8f6c9ea12bad1ecd40322affe8ea9a33e835917886 - 0.0% (227 Bytes)
[#002] sha256:ba04f9d377618a3731f55f7972bb9fbc8a4cb78391a46e88ededc6699af6a6d5 - 61.69% (105 MB)
[#003] sha256:b5a56e8091661e47df4bb70ac904e0e28c26943dea545450dc023fe4cf6f935c - 0.0% (227 Bytes)
[#004] sha256:4a5d6add9f40caa830ea28a5d150682242764407100d2d12cec68aaeb8a65694 - 6.89% (11.7 MB)
[#005] sha256:fe2645f3f79a1037ef7d883e223605b77c8d85b18edda0ccedbadd13c29428af - 0.0% (491 Bytes)
[#006] sha256:5b37d6e3856a6ff7cf3268ca47fbeae8962caeb7b4adc0fbe736be3ebe4322af - 6.54% (11.1 MB)
[#007] sha256:02720b1bde4d3a633d44f9d0898166e8253189c07e022bdf8ae7983943f6926f - 0.0% (2.4 KB)
[#008] sha256:74fb59c11aa92213fcfe4e75ca3dd71eaa0ca0dad1e8efe8fa50a783a3ed3e46 - 0.0% (251 Bytes)
[#009] sha256:dae55bcade57928600640997308581154b687b49798a16cb150c699ae4796cc8 - 0.0% (245 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:dda2f48ea0170923f02cd7d689ee4ae887399ed65427d5cf7827856b1fb6f345 - 0.01% (9.04 KB)
[#012] sha256:d4560639b7198ad67fe92cb2bcae8e92f1929293d7b6d833f469e254dbb39170 - 0.0% (298 Bytes)
[#013] sha256:6f62cce2c1a2453f6a69eb12fdc27d6d8f1c952727ac13ab105acbfc112f3011 - 0.0% (2.69 KB)
[#014] sha256:9f5418fe4a63896f9f3a4a98f405f9c9508c284ad33d07e63d6d6f3ec14c0616 - 0.02% (36.4 KB)
[#015] sha256:c5334c1d46ff2d8e04692d81d09071e37106f666962d51ff698840d9f375a680 - 7.5% (12.8 MB)
[#016] sha256:3be52c15b1714e37b1e5beb1e1180ceba896a58b24e57b5d95cbf8b595afc690 - 0.44% (774 KB)
[#017] sha256:47837f354eb8ac0a6853d2d7d1bb28429bc6fc0cb181c2b99067b2ab441381f3 - 0.02% (36.4 KB)
[#018] sha256:2e5976939df55dbd0cb30fae9b2a4bc3fa19b48e41679fe9bc5eab010b186792 - 0.0% (735 Bytes)
[#019] sha256:ae5d15e473dd3e5de4d3ba4ad1b0feac1c20ab4f098747bd1797f13317fbaae2 - 0.0% (91 Bytes)
# debian.sh --arch 'arm64' out/ 'trixie' '@1777939200'
2026-05-08 19:21:53 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2026-05-08 19:22:10 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2026-05-08 19:22:10 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
2026-05-08 19:22:10 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2026-05-08 19:22:10 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-05-08 19:22:10 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-05-08 19:22:10 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-05-08 19:22:10 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2026-05-08 19:22:10 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2026-05-08 19:22:10 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.31
2026-05-08 19:22:10 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.31.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.31.tar.xz.asc
2026-05-08 19:22:10 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=95eae411d594fe6f6e5678b76645dc13ae47d3c0a5325c1d969b58dea56ee45a
2026-05-08 19:30:13 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2026-05-08 19:30:13 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2026-05-08 19:33:40 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; 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 --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2026-05-08 19:33:40 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2026-05-08 19:33:40 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2026-05-08 19:33:40 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2026-05-08 19:33:40 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2026-05-08 19:33:40 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2026-05-08 19:33:40 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-05-08 19:33:40 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2026-05-08 19:33:40 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2026-05-08 19:33:40 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2026-05-14 05:54:35 UTC (buildkit.dockerfile.v0)COPY ./data/php-fpm.ini /etc/supervisor.d/php-fpm.ini # buildkit
2026-05-14 05:54:35 UTC (buildkit.dockerfile.v0)COPY ./data/supervisord.conf /etc/supervisord.conf # buildkit
2026-05-14 05:54:35 UTC (buildkit.dockerfile.v0)COPY ./data/install-php-extensions /usr/local/bin/ # buildkit
2026-05-14 05:56:02 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends supervisor && mkdir -p /var/log/supervisor /etc/supervisor/conf.d && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit
2026-05-14 05:56:05 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c curl -o /tmp/composer-setup.php https://getcomposer.org/installer && php /tmp/composer-setup.php --install-dir=/tmp && mv /tmp/composer.phar /usr/bin/composer && chmod +x /usr/bin/composer && rm -rf /tmp/composer-setup.php # buildkit
2026-05-14 05:56:05 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c chmod uga+x /usr/local/bin/install-php-extensions # buildkit
2026-05-14 05:56:05 UTC (buildkit.dockerfile.v0)ENV COMPOSER_HOME=/tmp/.composer
2026-05-14 05:56:05 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c usermod -u 1000 www-data && groupmod -g 1000 www-data # buildkit
2026-05-14 05:56:05 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["supervisord" "--nodaemon" "--configuration" "/etc/supervisord.conf"]
2026-05-14 05:56:05 UTC (buildkit.dockerfile.v0)WORKDIR /www
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.