2026-11-19 21:18:42 UTC
190 MB
noninteractive
DEV_MODE GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.37.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_SHA2560237af84478b7a7649d3964153f1b8653d622550b846f56d63062de683fb86bb
PHP_URLhttps://www.php.net/distributions/php-8.3.37.tar.xz
PHP_VERSION8.3.37
TERMxterm-color
[#000] sha256:37fb86c2a767b88d500c6872195f88078f64765fe0d2f9cc375cc2efbd4c0a41 - 14.98% (28.5 MB)
[#001] sha256:c7c3cdfacfa7084a350435505bf828453958e15117f32b0cef4de9eeb72fb33f - 0.0% (225 Bytes)
[#002] sha256:02e0ef4145e4cf791df3976bba0407dee45f0e7b05eb6e01c46ec56dc053bd46 - 59.14% (112 MB)
[#003] sha256:3570839a029c6b73e6d68938b53398c05737b3403c2c31725ffc63c9cf4a2b32 - 0.0% (225 Bytes)
[#004] sha256:194319c5db3f02d8a66bf8ad3b36e19b839769fc3c068dff0430f7ae8d5f6008 - 6.44% (12.2 MB)
[#005] sha256:29801d934de43dabe4f2e5aa21de7fc6e7f9bd8d46803c375e89531e9c80f050 - 0.0% (488 Bytes)
[#006] sha256:57f37d8ee1f9e69a7d61ad816829dded7d01b347298f67db45f79f2e5c188a08 - 10.22% (19.4 MB)
[#007] sha256:67d0726b5d8f1e9070f1dd042694e477ddd6e32980178998afc582417106f173 - 0.0% (2.4 KB)
[#008] sha256:1e1f0a037fed359891f8a0813cfcbcb6efed5028c51e13c2c7a3e831410f2518 - 0.0% (249 Bytes)
[#009] sha256:f3c2b3280144d8838813511b916ff849050c71de65ca35a105d85d684c2fb127 - 0.0% (244 Bytes)
[#010] sha256:2715e6a27042083379a1808ef31d3ecbd9c5042d05a609d4d2b64e240fe4a062 - 0.44% (859 KB)
[#011] sha256:cc4e44aaa89411764ae3144a6f39c30a468bd4026c04406287eb30dbe9dc9c50 - 0.0% (7.3 KB)
[#012] sha256:4c582b9ca406dd39b8c295ae04acd60d2583caf92acc597612175db727ca274c - 8.77% (16.7 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
# debian.sh --arch 'amd64' out/ 'trixie' '@1793827419'
2026-11-19 14:31:37 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-11-19 14:31:53 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2026-11-19 14:31:53 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-11-19 14:31:53 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2026-11-19 14:31:54 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-11-19 14:31:54 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-11-19 14:31:54 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-11-19 14:31:54 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2026-11-19 14:31:54 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2026-11-19 14:31:54 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.37
2026-11-19 14:31:54 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.37.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.37.tar.xz.asc
2026-11-19 14:31:54 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=0237af84478b7a7649d3964153f1b8653d622550b846f56d63062de683fb86bb
2026-11-19 14:35:05 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-11-19 14:35:05 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2026-11-19 14:37:26 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; case "$gnuArch" in 'i686-linux-'*) export CFLAGS="$CFLAGS -msse2 -mfpmath=sse" CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" ; ;; esac; 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 --enable-phpdbg --enable-phpdbg-readline --with-pear --with-libdir="lib/$debMultiarch" --enable-embed ; 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-11-19 14:37:26 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2026-11-19 14:37:26 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2026-11-19 14:37:26 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2026-11-19 14:37:26 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2026-11-19 14:37:26 UTC (buildkit.dockerfile.v0)CMD ["php" "-a"]
2026-11-19 21:17:18 UTC (buildkit.dockerfile.v0)ENV DEBIAN_FRONTEND=noninteractive
2026-11-19 21:17:18 UTC (buildkit.dockerfile.v0)ENV TERM=xterm-color
2026-11-19 21:17:18 UTC (buildkit.dockerfile.v0)ARG DEV_MODE
2026-11-19 21:17:18 UTC (buildkit.dockerfile.v0)ENV DEV_MODE=
2026-11-19 21:17:18 UTC (buildkit.dockerfile.v0)COPY /usr/bin/composer /usr/bin/ # buildkit
2026-11-19 21:17:18 UTC (buildkit.dockerfile.v0)COPY ./rootfilesystem/ / # buildkit
2026-11-19 21:18:42 UTC (buildkit.dockerfile.v0)RUN |1 DEV_MODE= /bin/sh -c set -ex && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install -y inotify-tools supervisor tini unzip libcurl4-openssl-dev libbrotli-dev libc-ares-dev libpq-dev libsqlite3-dev libssh2-1-dev libssl-dev libzstd-dev unixodbc-dev zlib1g-dev --no-install-recommends && if [ "${DEV_MODE}" = "true" ] ; then apt-get install -y gdb git lsof strace tcpdump valgrind --no-install-recommends && if ! apt-get install -y vim --no-install-recommends ; then case "$(dpkg --print-architecture)" in amd64|arm64) exit 1 ;; *) echo "WARNING: package vim can't be installed on this platform at the moment; skipped." ;; esac ; fi ; fi && docker-php-ext-install pdo_mysql && MAKEFLAGS="-j$(nproc)" pecl install /tmp/sources/igbinary.tgz && MAKEFLAGS="-j$(nproc)" pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-lzf="yes" enable-redis-zstd="yes" enable-redis-msgpack="no" enable-redis-lz4="no" with-liblz4="yes"' /tmp/sources/redis.tgz && docker-php-ext-enable igbinary && docker-php-ext-enable redis && docker-php-ext-install sockets && mkdir -p /usr/src/swoole-src && tar xzf /tmp/sources/swoole-src.tar.gz --strip-components=1 -C /usr/src/swoole-src && if [ "${DEV_MODE}" = "true" ] ; then devOptions="--enable-debug-log --enable-trace-log" && export CFLAGS="${PHP_CFLAGS} -g" CXXFLAGS="${PHP_CFLAGS} -g" ; else devOptions="" && export CXXFLAGS="${PHP_CFLAGS}" ; fi && docker-php-ext-configure /usr/src/swoole-src ${devOptions} --enable-brotli --enable-cares --enable-mysqlnd --enable-sockets --enable-swoole-curl --enable-swoole-ftp --enable-swoole-pgsql --enable-swoole-sqlite --enable-zstd --with-swoole-odbc=unixODBC,/usr --with-swoole-ssh2 && if [ "${DEV_MODE}" = "true" ] ; then make -C /usr/src/swoole-src -j"$(nproc)" && make -C /usr/src/swoole-src install && make -C /usr/src/swoole-src clean && docker-php-ext-enable swoole ; else docker-php-ext-install -j"$(nproc)" /usr/src/swoole-src && rm -rf /usr/src/swoole-src ; fi && docker-php-source delete && mkdir -p /var/log/supervisor && if [ "${DEV_MODE}" != "true" ] ; then strip --strip-all "$(php-config --extension-dir)"/*.so && apt-mark auto '.*' > /dev/null && apt-mark manual $savedAptMark inotify-tools supervisor tini unzip > /dev/null && find /usr/local -type f -name '*.so' -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | grep -v '^diversion' | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false ; fi && rm -rf /var/lib/apt/lists/* /tmp/pear && php -r 'exit(extension_loaded("swoole") && extension_loaded("igbinary") && extension_loaded("redis") ? 0 : 1);' && php -r '$ok = false; Swoole\Coroutine\run(function () use (&$ok) { $channel = new Swoole\Coroutine\Channel(1); Swoole\Coroutine::create(function () use ($channel) { Swoole\Coroutine::sleep(0.01); $channel->push(igbinary_unserialize(igbinary_serialize(["swoole" => 1]))); }); $ok = $channel->pop(10) === ["swoole" => 1]; }); exit($ok ? 0 : 1);' # buildkit
2026-11-19 21:18:42 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/usr/bin/tini" "-s" "--" "/entrypoint.sh"]
2026-11-19 21:18:42 UTC (buildkit.dockerfile.v0)CMD []
2026-11-19 21:18:42 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/
2026-11-19 20:44:09 UTC
183 MB
noninteractive
DEV_MODE GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.37.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_SHA2560237af84478b7a7649d3964153f1b8653d622550b846f56d63062de683fb86bb
PHP_URLhttps://www.php.net/distributions/php-8.3.37.tar.xz
PHP_VERSION8.3.37
TERMxterm-color
[#000] sha256:acd43e9bebc37bc4ba7a5f47bd7598913337803e53d468f37d940f11f5d5f1ef - 15.75% (28.8 MB)
[#001] sha256:2a028d1d136c934ec2e179cf50963df59221124639d42be41c85a0c91983dd58 - 0.0% (225 Bytes)
[#002] sha256:a54e1f1dbdd691e5f94817abbb1884260ee9c4c9daa1a1627592aa42aaa9c575 - 57.43% (105 MB)
[#003] sha256:f6c503102d951e95cd4722d5df69ee778ba08bdde8af20b4b43eae1333ee8a52 - 0.0% (226 Bytes)
[#004] sha256:933ff16515c0b9e174fb204f510301a13ad9e4c1516f997a70859afadc24662b - 6.69% (12.2 MB)
[#005] sha256:f6151ec641d1868bb0eee4bdbd99d9c80043a2a2ed5b0bbe9172c993b4c94147 - 0.0% (490 Bytes)
[#006] sha256:5a851fdba05828549b6a975de728356233773cf6435536887854396ba1f71c5f - 10.55% (19.3 MB)
[#007] sha256:e8e289d95a6a50e34b5fea0b17ac370a18d7afd6203756f63c701384b2a5e958 - 0.0% (2.4 KB)
[#008] sha256:d804d7d67d5e8a6cf23fd04f50fe6dd5ba7c458a55ccc69a39bf9625c389ec96 - 0.0% (252 Bytes)
[#009] sha256:55d0afa300f57fcd60865565a4d320830433b9a101b6411ac82d41ea1e0cd2c7 - 0.0% (247 Bytes)
[#010] sha256:795805e7150c31987a0e3dc2463cb96fe40023315ac40c506dfe229b0058db02 - 0.46% (859 KB)
[#011] sha256:7470210dcced588f2026b12c3b2e0bbe102400ba9d14a2c5c399ffe55aed8889 - 0.0% (7.3 KB)
[#012] sha256:89cd4edae7cb169dc4ea028847a332435be8bec09178c1928373946e4dca4e93 - 9.12% (16.7 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
# debian.sh --arch 'arm64' out/ 'trixie' '@1793827419'
2026-11-19 14:35:56 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-11-19 14:36:16 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2026-11-19 14:36:16 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-11-19 14:36:16 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2026-11-19 14:36: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-11-19 14:36:16 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-11-19 14:36:16 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-11-19 14:36:16 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2026-11-19 14:36:16 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2026-11-19 14:36:16 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.37
2026-11-19 14:36:16 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.37.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.37.tar.xz.asc
2026-11-19 14:36:16 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=0237af84478b7a7649d3964153f1b8653d622550b846f56d63062de683fb86bb
2026-11-19 14:36:24 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2026-11-19 14:36:24 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2026-11-19 14:40:11 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; case "$gnuArch" in 'i686-linux-'*) export CFLAGS="$CFLAGS -msse2 -mfpmath=sse" CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" ; ;; esac; 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 --enable-phpdbg --enable-phpdbg-readline --with-pear --with-libdir="lib/$debMultiarch" --enable-embed ; 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-11-19 14:40:11 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2026-11-19 14:40:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2026-11-19 14:40:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2026-11-19 14:40:11 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2026-11-19 14:40:11 UTC (buildkit.dockerfile.v0)CMD ["php" "-a"]
2026-11-19 20:42:30 UTC (buildkit.dockerfile.v0)ENV DEBIAN_FRONTEND=noninteractive
2026-11-19 20:42:30 UTC (buildkit.dockerfile.v0)ENV TERM=xterm-color
2026-11-19 20:42:30 UTC (buildkit.dockerfile.v0)ARG DEV_MODE
2026-11-19 20:42:30 UTC (buildkit.dockerfile.v0)ENV DEV_MODE=
2026-11-19 20:42:30 UTC (buildkit.dockerfile.v0)COPY /usr/bin/composer /usr/bin/ # buildkit
2026-11-19 20:42:30 UTC (buildkit.dockerfile.v0)COPY ./rootfilesystem/ / # buildkit
2026-11-19 20:44:09 UTC (buildkit.dockerfile.v0)RUN |1 DEV_MODE= /bin/sh -c set -ex && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install -y inotify-tools supervisor tini unzip libcurl4-openssl-dev libbrotli-dev libc-ares-dev libpq-dev libsqlite3-dev libssh2-1-dev libssl-dev libzstd-dev unixodbc-dev zlib1g-dev --no-install-recommends && if [ "${DEV_MODE}" = "true" ] ; then apt-get install -y gdb git lsof strace tcpdump valgrind --no-install-recommends && if ! apt-get install -y vim --no-install-recommends ; then case "$(dpkg --print-architecture)" in amd64|arm64) exit 1 ;; *) echo "WARNING: package vim can't be installed on this platform at the moment; skipped." ;; esac ; fi ; fi && docker-php-ext-install pdo_mysql && MAKEFLAGS="-j$(nproc)" pecl install /tmp/sources/igbinary.tgz && MAKEFLAGS="-j$(nproc)" pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-lzf="yes" enable-redis-zstd="yes" enable-redis-msgpack="no" enable-redis-lz4="no" with-liblz4="yes"' /tmp/sources/redis.tgz && docker-php-ext-enable igbinary && docker-php-ext-enable redis && docker-php-ext-install sockets && mkdir -p /usr/src/swoole-src && tar xzf /tmp/sources/swoole-src.tar.gz --strip-components=1 -C /usr/src/swoole-src && if [ "${DEV_MODE}" = "true" ] ; then devOptions="--enable-debug-log --enable-trace-log" && export CFLAGS="${PHP_CFLAGS} -g" CXXFLAGS="${PHP_CFLAGS} -g" ; else devOptions="" && export CXXFLAGS="${PHP_CFLAGS}" ; fi && docker-php-ext-configure /usr/src/swoole-src ${devOptions} --enable-brotli --enable-cares --enable-mysqlnd --enable-sockets --enable-swoole-curl --enable-swoole-ftp --enable-swoole-pgsql --enable-swoole-sqlite --enable-zstd --with-swoole-odbc=unixODBC,/usr --with-swoole-ssh2 && if [ "${DEV_MODE}" = "true" ] ; then make -C /usr/src/swoole-src -j"$(nproc)" && make -C /usr/src/swoole-src install && make -C /usr/src/swoole-src clean && docker-php-ext-enable swoole ; else docker-php-ext-install -j"$(nproc)" /usr/src/swoole-src && rm -rf /usr/src/swoole-src ; fi && docker-php-source delete && mkdir -p /var/log/supervisor && if [ "${DEV_MODE}" != "true" ] ; then strip --strip-all "$(php-config --extension-dir)"/*.so && apt-mark auto '.*' > /dev/null && apt-mark manual $savedAptMark inotify-tools supervisor tini unzip > /dev/null && find /usr/local -type f -name '*.so' -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | grep -v '^diversion' | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false ; fi && rm -rf /var/lib/apt/lists/* /tmp/pear && php -r 'exit(extension_loaded("swoole") && extension_loaded("igbinary") && extension_loaded("redis") ? 0 : 1);' && php -r '$ok = false; Swoole\Coroutine\run(function () use (&$ok) { $channel = new Swoole\Coroutine\Channel(1); Swoole\Coroutine::create(function () use ($channel) { Swoole\Coroutine::sleep(0.01); $channel->push(igbinary_unserialize(igbinary_serialize(["swoole" => 1]))); }); $ok = $channel->pop(10) === ["swoole" => 1]; }); exit($ok ? 0 : 1);' # buildkit
2026-11-19 20:44:09 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/usr/bin/tini" "-s" "--" "/entrypoint.sh"]
2026-11-19 20:44:09 UTC (buildkit.dockerfile.v0)CMD []
2026-11-19 20:44:09 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/
2026-11-19 22:12:26 UTC
187 MB
noninteractive
DEV_MODE GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.37.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_SHA2560237af84478b7a7649d3964153f1b8653d622550b846f56d63062de683fb86bb
PHP_URLhttps://www.php.net/distributions/php-8.3.37.tar.xz
PHP_VERSION8.3.37
TERMxterm-color
[#000] sha256:33d716a337c18262f51540d4a07992d0eb31456a1d5386930bec26ee2244fa66 - 17.13% (32.1 MB)
[#001] sha256:6c7268b190588f776dc9e7d85c3d3e7cd51ab40a5eb161341e7cafba8aa8db15 - 0.0% (226 Bytes)
[#002] sha256:531972258920b8490e62ebec510a08a421787308f63d34f6bc4d9b6b8d8abc78 - 55.77% (105 MB)
[#003] sha256:81b985c27ef371a30298e699042d2ad9aefa1c4153215a3857a6bb042ad47cde - 0.0% (224 Bytes)
[#004] sha256:802ebad3e7608b8e1fa656404c55ed3b42545d4eae38faca951634957d4e9870 - 6.54% (12.2 MB)
[#005] sha256:7e74ea8b98b18862f857947a2c0b86904e2f43c027f48d68f0e0700303aa177e - 0.0% (490 Bytes)
[#006] sha256:53f980c792ababce372437c5ddb6cd4b7706ce36e1e01c89efecec717a75700a - 11.02% (20.7 MB)
[#007] sha256:1b2a268bc79834b0ee88f03b508f388af9274e9be601c3224fc07bf728ae9a58 - 0.0% (2.39 KB)
[#008] sha256:a61d7605d204718cd0d560df0aff0bf4ed30c0992f3b8c7f9803aea85d8278d9 - 0.0% (251 Bytes)
[#009] sha256:bc75026ba09ecff60449f3c589f73347b024a1c911347e88901f5a38ef310226 - 0.0% (247 Bytes)
[#010] sha256:2548a9ebfa752759939dcbae7f142956fb68433f3df405a2e8e277ebf1583876 - 0.45% (859 KB)
[#011] sha256:d5e2d07f3db9709938fbe8e610c4d39946f33ec9ebb460bf3f97b1dc7605f8b3 - 0.0% (7.3 KB)
[#012] sha256:aaf338303900fce5ca34e9370247b550003813829de7efc35db66d76266b8da4 - 9.09% (17 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
# debian.sh --arch 'ppc64el' out/ 'trixie' '@1793827419'
2026-11-05 07:51:14 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-11-05 07:51:49 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2026-11-05 07:51:49 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-11-05 07:51:49 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2026-11-05 07:51:49 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-11-05 07:51:49 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-11-05 07:51:49 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-11-05 07:51:49 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2026-11-05 07:51:49 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2026-11-05 07:51:49 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.37
2026-11-05 07:51:49 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.37.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.37.tar.xz.asc
2026-11-05 07:51:49 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=0237af84478b7a7649d3964153f1b8653d622550b846f56d63062de683fb86bb
2026-11-19 15:46:43 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-11-19 15:46:43 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2026-11-19 15:50:59 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; case "$gnuArch" in 'i686-linux-'*) export CFLAGS="$CFLAGS -msse2 -mfpmath=sse" CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" ; ;; esac; 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 --enable-phpdbg --enable-phpdbg-readline --with-pear --with-libdir="lib/$debMultiarch" --enable-embed ; 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-11-19 15:51:00 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2026-11-19 15:51:00 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2026-11-19 15:51:01 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2026-11-19 15:51:01 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2026-11-19 15:51:01 UTC (buildkit.dockerfile.v0)CMD ["php" "-a"]
2026-11-19 21:48:45 UTC (buildkit.dockerfile.v0)ENV DEBIAN_FRONTEND=noninteractive
2026-11-19 21:48:45 UTC (buildkit.dockerfile.v0)ENV TERM=xterm-color
2026-11-19 21:48:45 UTC (buildkit.dockerfile.v0)ARG DEV_MODE
2026-11-19 21:48:45 UTC (buildkit.dockerfile.v0)ENV DEV_MODE=
2026-11-19 21:48:45 UTC (buildkit.dockerfile.v0)COPY /usr/bin/composer /usr/bin/ # buildkit
2026-11-19 21:48:45 UTC (buildkit.dockerfile.v0)COPY ./rootfilesystem/ / # buildkit
2026-11-19 22:12:26 UTC (buildkit.dockerfile.v0)RUN |1 DEV_MODE= /bin/sh -c set -ex && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install -y inotify-tools supervisor tini unzip libcurl4-openssl-dev libbrotli-dev libc-ares-dev libpq-dev libsqlite3-dev libssh2-1-dev libssl-dev libzstd-dev unixodbc-dev zlib1g-dev --no-install-recommends && if [ "${DEV_MODE}" = "true" ] ; then apt-get install -y gdb git lsof strace tcpdump valgrind --no-install-recommends && if ! apt-get install -y vim --no-install-recommends ; then case "$(dpkg --print-architecture)" in amd64|arm64) exit 1 ;; *) echo "WARNING: package vim can't be installed on this platform at the moment; skipped." ;; esac ; fi ; fi && docker-php-ext-install pdo_mysql && MAKEFLAGS="-j$(nproc)" pecl install /tmp/sources/igbinary.tgz && MAKEFLAGS="-j$(nproc)" pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-lzf="yes" enable-redis-zstd="yes" enable-redis-msgpack="no" enable-redis-lz4="no" with-liblz4="yes"' /tmp/sources/redis.tgz && docker-php-ext-enable igbinary && docker-php-ext-enable redis && docker-php-ext-install sockets && mkdir -p /usr/src/swoole-src && tar xzf /tmp/sources/swoole-src.tar.gz --strip-components=1 -C /usr/src/swoole-src && if [ "${DEV_MODE}" = "true" ] ; then devOptions="--enable-debug-log --enable-trace-log" && export CFLAGS="${PHP_CFLAGS} -g" CXXFLAGS="${PHP_CFLAGS} -g" ; else devOptions="" && export CXXFLAGS="${PHP_CFLAGS}" ; fi && docker-php-ext-configure /usr/src/swoole-src ${devOptions} --enable-brotli --enable-cares --enable-mysqlnd --enable-sockets --enable-swoole-curl --enable-swoole-ftp --enable-swoole-pgsql --enable-swoole-sqlite --enable-zstd --with-swoole-odbc=unixODBC,/usr --with-swoole-ssh2 && if [ "${DEV_MODE}" = "true" ] ; then make -C /usr/src/swoole-src -j"$(nproc)" && make -C /usr/src/swoole-src install && make -C /usr/src/swoole-src clean && docker-php-ext-enable swoole ; else docker-php-ext-install -j"$(nproc)" /usr/src/swoole-src && rm -rf /usr/src/swoole-src ; fi && docker-php-source delete && mkdir -p /var/log/supervisor && if [ "${DEV_MODE}" != "true" ] ; then strip --strip-all "$(php-config --extension-dir)"/*.so && apt-mark auto '.*' > /dev/null && apt-mark manual $savedAptMark inotify-tools supervisor tini unzip > /dev/null && find /usr/local -type f -name '*.so' -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | grep -v '^diversion' | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false ; fi && rm -rf /var/lib/apt/lists/* /tmp/pear && php -r 'exit(extension_loaded("swoole") && extension_loaded("igbinary") && extension_loaded("redis") ? 0 : 1);' && php -r '$ok = false; Swoole\Coroutine\run(function () use (&$ok) { $channel = new Swoole\Coroutine\Channel(1); Swoole\Coroutine::create(function () use ($channel) { Swoole\Coroutine::sleep(0.01); $channel->push(igbinary_unserialize(igbinary_serialize(["swoole" => 1]))); }); $ok = $channel->pop(10) === ["swoole" => 1]; }); exit($ok ? 0 : 1);' # buildkit
2026-11-19 22:12:26 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/usr/bin/tini" "-s" "--" "/entrypoint.sh"]
2026-11-19 22:12:26 UTC (buildkit.dockerfile.v0)CMD []
2026-11-19 22:12:26 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/
2026-11-19 21:00:06 UTC
166 MB
noninteractive
DEV_MODE GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.37.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_SHA2560237af84478b7a7649d3964153f1b8653d622550b846f56d63062de683fb86bb
PHP_URLhttps://www.php.net/distributions/php-8.3.37.tar.xz
PHP_VERSION8.3.37
TERMxterm-color
[#000] sha256:68fa0367de27b0e6a2c3df0454287606106fa6c116da44e6260ef14d71fbf0e4 - 17.22% (28.5 MB)
[#001] sha256:1dc90f18d381c1c190bbd05548eb25d4919b5bcb4150305b2066bb6f6a0eac1f - 0.0% (225 Bytes)
[#002] sha256:6064727183bb56538cc6371082e5cf86589847304ddb2ccb1d606fa7a75240e2 - 53.26% (88.3 MB)
[#003] sha256:4a7fb2d82fb764d012f892370b22cac9c131ee57ce786c706df99509bd396c16 - 0.0% (226 Bytes)
[#004] sha256:58caab8fd48d08dc0465f3c1aecac163e06e03d031902f94627598887535f5a3 - 7.39% (12.2 MB)
[#005] sha256:9d4690da2fad1294966fdefc790a48b03424fcc6510b97ae02263b5b141e4e09 - 0.0% (488 Bytes)
[#006] sha256:8ecf63c82ae02e7012a961413fd1640324a42d1b92c73908ebd5509e0427b77e - 11.76% (19.5 MB)
[#007] sha256:168d7fd8964d20de75ecce7b2dfcc05a5d24a57b24cbbe9549d32dde61f27da3 - 0.0% (2.4 KB)
[#008] sha256:b3e490d23a98d66c4c8c4bfa18a70e4cf1b5e99f0c1ac6a586fb2ee22bf451e9 - 0.0% (253 Bytes)
[#009] sha256:db7162ab0a1a81abdd61ddccc859cea0f4f0ee1ec09b3682e78f99a3fc6a3625 - 0.0% (246 Bytes)
[#010] sha256:1b4c2af641706f2c8348bbd91807ffed9086a7a6490cf07d27b057c9fd122575 - 0.51% (859 KB)
[#011] sha256:1439135e3f04a04bf100ba743e1d353d57bf22346fd76a5726f3d6f2c8eb0fb3 - 0.0% (7.3 KB)
[#012] sha256:e7b222d58dabc16d18c28017014cbbf286983e50405eb29582742108fc20436a - 9.85% (16.3 MB)
[#013] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
# debian.sh --arch 's390x' out/ 'trixie' '@1793827419'
2026-11-05 07:16:16 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-11-05 07:16:29 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2026-11-05 07:16:29 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-11-05 07:16:29 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2026-11-05 07:16:29 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-11-05 07:16:29 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-11-05 07:16:29 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-11-05 07:16:29 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2026-11-05 07:16:29 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2026-11-05 07:16:29 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.37
2026-11-05 07:16:29 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.37.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.37.tar.xz.asc
2026-11-05 07:16:29 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=0237af84478b7a7649d3964153f1b8653d622550b846f56d63062de683fb86bb
2026-11-19 14:48: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-11-19 14:48:29 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2026-11-19 14:51: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 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; case "$gnuArch" in 'i686-linux-'*) export CFLAGS="$CFLAGS -msse2 -mfpmath=sse" CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" ; ;; esac; 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 --enable-phpdbg --enable-phpdbg-readline --with-pear --with-libdir="lib/$debMultiarch" --enable-embed ; 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-11-19 14:51:13 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2026-11-19 14:51:13 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2026-11-19 14:51:13 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2026-11-19 14:51:13 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2026-11-19 14:51:13 UTC (buildkit.dockerfile.v0)CMD ["php" "-a"]
2026-11-19 20:37:41 UTC (buildkit.dockerfile.v0)ENV DEBIAN_FRONTEND=noninteractive
2026-11-19 20:37:41 UTC (buildkit.dockerfile.v0)ENV TERM=xterm-color
2026-11-19 20:37:41 UTC (buildkit.dockerfile.v0)ARG DEV_MODE
2026-11-19 20:37:41 UTC (buildkit.dockerfile.v0)ENV DEV_MODE=
2026-11-19 20:37:41 UTC (buildkit.dockerfile.v0)COPY /usr/bin/composer /usr/bin/ # buildkit
2026-11-19 20:37:41 UTC (buildkit.dockerfile.v0)COPY ./rootfilesystem/ / # buildkit
2026-11-19 21:00:06 UTC (buildkit.dockerfile.v0)RUN |1 DEV_MODE= /bin/sh -c set -ex && savedAptMark="$(apt-mark showmanual)" && apt-get update && apt-get install -y inotify-tools supervisor tini unzip libcurl4-openssl-dev libbrotli-dev libc-ares-dev libpq-dev libsqlite3-dev libssh2-1-dev libssl-dev libzstd-dev unixodbc-dev zlib1g-dev --no-install-recommends && if [ "${DEV_MODE}" = "true" ] ; then apt-get install -y gdb git lsof strace tcpdump valgrind --no-install-recommends && if ! apt-get install -y vim --no-install-recommends ; then case "$(dpkg --print-architecture)" in amd64|arm64) exit 1 ;; *) echo "WARNING: package vim can't be installed on this platform at the moment; skipped." ;; esac ; fi ; fi && docker-php-ext-install pdo_mysql && MAKEFLAGS="-j$(nproc)" pecl install /tmp/sources/igbinary.tgz && MAKEFLAGS="-j$(nproc)" pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-lzf="yes" enable-redis-zstd="yes" enable-redis-msgpack="no" enable-redis-lz4="no" with-liblz4="yes"' /tmp/sources/redis.tgz && docker-php-ext-enable igbinary && docker-php-ext-enable redis && docker-php-ext-install sockets && mkdir -p /usr/src/swoole-src && tar xzf /tmp/sources/swoole-src.tar.gz --strip-components=1 -C /usr/src/swoole-src && if [ "${DEV_MODE}" = "true" ] ; then devOptions="--enable-debug-log --enable-trace-log" && export CFLAGS="${PHP_CFLAGS} -g" CXXFLAGS="${PHP_CFLAGS} -g" ; else devOptions="" && export CXXFLAGS="${PHP_CFLAGS}" ; fi && docker-php-ext-configure /usr/src/swoole-src ${devOptions} --enable-brotli --enable-cares --enable-mysqlnd --enable-sockets --enable-swoole-curl --enable-swoole-ftp --enable-swoole-pgsql --enable-swoole-sqlite --enable-zstd --with-swoole-odbc=unixODBC,/usr --with-swoole-ssh2 && if [ "${DEV_MODE}" = "true" ] ; then make -C /usr/src/swoole-src -j"$(nproc)" && make -C /usr/src/swoole-src install && make -C /usr/src/swoole-src clean && docker-php-ext-enable swoole ; else docker-php-ext-install -j"$(nproc)" /usr/src/swoole-src && rm -rf /usr/src/swoole-src ; fi && docker-php-source delete && mkdir -p /var/log/supervisor && if [ "${DEV_MODE}" != "true" ] ; then strip --strip-all "$(php-config --extension-dir)"/*.so && apt-mark auto '.*' > /dev/null && apt-mark manual $savedAptMark inotify-tools supervisor tini unzip > /dev/null && find /usr/local -type f -name '*.so' -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | grep -v '^diversion' | cut -d: -f1 | sort -u | xargs -r apt-mark manual && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false ; fi && rm -rf /var/lib/apt/lists/* /tmp/pear && php -r 'exit(extension_loaded("swoole") && extension_loaded("igbinary") && extension_loaded("redis") ? 0 : 1);' && php -r '$ok = false; Swoole\Coroutine\run(function () use (&$ok) { $channel = new Swoole\Coroutine\Channel(1); Swoole\Coroutine::create(function () use ($channel) { Swoole\Coroutine::sleep(0.01); $channel->push(igbinary_unserialize(igbinary_serialize(["swoole" => 1]))); }); $ok = $channel->pop(10) === ["swoole" => 1]; }); exit($ok ? 0 : 1);' # buildkit
2026-11-19 21:00:06 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/usr/bin/tini" "-s" "--" "/entrypoint.sh"]
2026-11-19 21:00:06 UTC (buildkit.dockerfile.v0)CMD []
2026-11-19 21:00:06 UTC (buildkit.dockerfile.v0)WORKDIR /var/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.