sha256:fce432c47ed7a910235d1c4ec88401af5e4b91281b807f0b547d7fa2c85d4029
2026-10-22 15:08:50 UTC
64.1 MB
39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.35.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_SHA2565737b98601fe5ab1b8c5db0c82ed3158acb9283ed3081ffe2faffb9ac81455e6
PHP_URLhttps://www.php.net/distributions/php-8.2.35.tar.xz
PHP_VERSION8.2.35
[#000] sha256:7b229517ed222597277036d94892173207d01a731ab3a88eeb1de2e963a2c788 - 5.73% (3.67 MB)
[#001] sha256:c04270e452aa07c5c05f64b45c0c5f23941422bca6fc2a82b3beee16424a999a - 5.19% (3.33 MB)
[#002] sha256:2d3c04c4a10c2811bf1b750b95566432ac0816b7905306011d8d36f7b66de2a4 - 0.0% (931 Bytes)
[#003] sha256:ffc4de69c0cabe1042c3e425b236102862ceb791e39caa5eb1e8239763c0d0ee - 0.0% (217 Bytes)
[#004] sha256:978ca17ba83ebae2590866256de639ccacfd269b40aa08542a6967fead483287 - 18.21% (11.7 MB)
[#005] sha256:ae359a01f5055159458dadb9cd525c4f7e641d86fc1ca659e27f907d48b1d94f - 0.0% (488 Bytes)
[#006] sha256:d98413eb37e375d0be12ed670e702b55d079bdd9ea8c48f7f66659d40e426a01 - 19.67% (12.6 MB)
[#007] sha256:57ff8c6586bf3aee2ed20abbc90f4a04d839ee6a66afddd0d0efa06b78b09eba - 0.0% (2.39 KB)
[#008] sha256:4f072ddff46e9baf2b9d360d626a2ba1a80a77c6103921d40d0b5c310010cb46 - 0.03% (21.8 KB)
[#009] sha256:fdfe010201b27b656f7ea6f97ff4abaf1fab5cc50bf6035550e9e55668b3d9ee - 0.03% (21.8 KB)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:cb5cddcc02ef29170a29f8769dd6373158877346c61cb0e12cb29987e6105716 - 0.01% (9.03 KB)
[#012] sha256:f3a11874700ac68605802643c1ddce4a4cb951e900b94e897ee930ebdc45666f - 0.06% (41.7 KB)
[#013] sha256:159cc2a15d7ad9d37ac62b98085f5658c7347de45cdbfd0c51dd1919ac80e603 - 6.12% (3.92 MB)
[#014] sha256:5114bafbd58f45ee7d7a88d98c2eb8a8e9583471a8aa0d4b46b1987f9daee074 - 43.15% (27.7 MB)
[#015] sha256:d37c44c3eeacc9debeeacf6a4b2bc45d5d506c7f778a54b9965a9e85fd5cda60 - 1.76% (1.13 MB)
[#016] sha256:5f445358ef21f598c2650a3dbb7f23d66b9918757b6228eded59729f03b9a32e - 0.0% (296 Bytes)
ADD alpine-minirootfs-3.24.3-x86_64.tar.gz / # buildkit
2026-10-21 22:37:22 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-10-21 22:52:34 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2026-10-21 22:52:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2026-10-21 22:52:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2026-10-21 22:52:34 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2026-10-21 22:52:34 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-10-21 22:52:34 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-10-21 22:52:34 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-10-21 22:52:34 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2026-10-21 22:52:34 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2026-10-21 22:52:34 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.35
2026-10-21 22:52:34 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.35.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.35.tar.xz.asc
2026-10-21 22:52:34 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=5737b98601fe5ab1b8c5db0c82ed3158acb9283ed3081ffe2faffb9ac81455e6
2026-10-21 22:52: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-10-21 22:52:37 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2026-10-21 22:55:08 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)"; 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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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-10-21 22:55:08 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2026-10-21 22:55:08 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2026-10-21 22:55:09 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2026-10-21 22:55:09 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2026-10-21 22:55:09 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2026-10-21 22:55:09 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-10-21 22:55:09 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2026-10-21 22:55:09 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2026-10-21 22:55:09 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2026-10-22 10:36:08 UTC (buildkit.dockerfile.v0)ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ # buildkit
2026-10-22 10:36:10 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache git # buildkit
2026-10-22 10:55:28 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c chmod +x /usr/local/bin/install-php-extensions && install-php-extensions gd mysqli zip pdo_mysql opcache sockets exif gmp bcmath pcntl pdo pdo_pgsql pgsql mcrypt apcu redis memcached mongodb pcntl @composer && mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" # buildkit
2026-10-22 15:08:50 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install-php-extensions xdebug xhprof && mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" # buildkit
2026-10-22 15:08:50 UTC (buildkit.dockerfile.v0)COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini # buildkit
sha256:eb9d1028c7b1c37009fc21bdf810e7544c743fb96673532ce8be5141a4a867d9
2026-10-22 15:25:30 UTC
59.6 MB
39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.35.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_SHA2565737b98601fe5ab1b8c5db0c82ed3158acb9283ed3081ffe2faffb9ac81455e6
PHP_URLhttps://www.php.net/distributions/php-8.2.35.tar.xz
PHP_VERSION8.2.35
[#000] sha256:61279dc9f8c5bf0223a3425a62f1aa1724ff7bf43c3d15f18ff665dc59c1f0c3 - 5.69% (3.39 MB)
[#001] sha256:ab946f0d920eec8f192f373498a8ac9c9a6a76c7ec07d2734d416dfefb78129c - 5.51% (3.29 MB)
[#002] sha256:57aa43feea65501244facc98e5502d8e61a1c4811cc7493db46fd5c92886adef - 0.0% (930 Bytes)
[#003] sha256:b88f201291062a1332754b234878a591b8d6529bcfe6c37890252844873c0832 - 0.0% (217 Bytes)
[#004] sha256:4fd40361eb5868636a93021f9551fad1008c5295bd228df53583197c27ae6aab - 19.57% (11.7 MB)
[#005] sha256:2bd96bcc54389e64953984f5be73bea92f9d7f356295b2d57024ef0286cd827a - 0.0% (489 Bytes)
[#006] sha256:731f01c9640fc35fbad9ed5b9ce0addb9072c311c34e1f9f7592416d17d29295 - 19.13% (11.4 MB)
[#007] sha256:9d16409f692dd14d2d58bfddcf1bc44672c4ae8f4ca3842f963369f382fd26bf - 0.0% (2.39 KB)
[#008] sha256:ea721f814693ebba541623d14592528c223a47249f495d04c1a1c25ca8720816 - 0.04% (21.6 KB)
[#009] sha256:a9b6ed1212aca373cb67ae69c809a7c49ef3b5db4afe7a3fd467dcd9c53c2e7c - 0.04% (21.6 KB)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:61dec59e4f47e1fbfe92e101d3c8c04ff932187fea155c93dc7493a18d80b4ce - 0.01% (9.04 KB)
[#012] sha256:c34aee34a624455e9486d64e8c075dbb9005d5e533949f7bb68408f7aaf7bd12 - 0.07% (41.7 KB)
[#013] sha256:e9e3c8a990b60c37ae718d7503df84d323d9d67f2dbb29c4726fe4669008cecc - 6.56% (3.91 MB)
[#014] sha256:2794271d73794ad67365522f3c50ddd18eacbed9b0989b02800a0e5bce23274b - 41.5% (24.8 MB)
[#015] sha256:d3e664377b88f3d21ce4c8a366816bba24bc56bb71204f62ce707bcfa6747da0 - 1.87% (1.11 MB)
[#016] sha256:d6790d629187d10347c04595a2a88bd466966f12247fabc17cc4b7faabd9cdf0 - 0.0% (296 Bytes)
ADD alpine-minirootfs-3.24.3-armhf.tar.gz / # buildkit
2026-10-21 22:58:59 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-10-21 23:19:14 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2026-10-21 23:19:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2026-10-21 23:19:14 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2026-10-21 23:19:14 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2026-10-21 23:19:14 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-10-21 23:19:14 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-10-21 23:19:14 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-10-21 23:19:14 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2026-10-21 23:19:14 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2026-10-21 23:19:14 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.35
2026-10-21 23:19:14 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.35.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.35.tar.xz.asc
2026-10-21 23:19:14 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=5737b98601fe5ab1b8c5db0c82ed3158acb9283ed3081ffe2faffb9ac81455e6
2026-10-21 23:22:42 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-10-21 23:22:42 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2026-10-21 23:25: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)"; 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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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-10-21 23:25:26 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2026-10-21 23:25:27 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2026-10-21 23:25:28 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2026-10-21 23:25:28 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2026-10-21 23:25:28 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2026-10-21 23:25:28 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-10-21 23:25:28 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2026-10-21 23:25:28 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2026-10-21 23:25:28 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2026-10-22 10:36:08 UTC (buildkit.dockerfile.v0)ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ # buildkit
2026-10-22 10:36:16 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache git # buildkit
2026-10-22 14:07:17 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c chmod +x /usr/local/bin/install-php-extensions && install-php-extensions gd mysqli zip pdo_mysql opcache sockets exif gmp bcmath pcntl pdo pdo_pgsql pgsql mcrypt apcu redis memcached mongodb pcntl @composer && mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" # buildkit
2026-10-22 15:25:30 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install-php-extensions xdebug xhprof && mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" # buildkit
2026-10-22 15:25:30 UTC (buildkit.dockerfile.v0)COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini # buildkit
sha256:5c0abfc21ee23850715871fbfa1e8ea9bd3b77e631ea9bd26d429d2a83c6589f
2026-10-22 15:25:41 UTC
58.7 MB
39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.35.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_SHA2565737b98601fe5ab1b8c5db0c82ed3158acb9283ed3081ffe2faffb9ac81455e6
PHP_URLhttps://www.php.net/distributions/php-8.2.35.tar.xz
PHP_VERSION8.2.35
[#000] sha256:1e8d134240abdd47977b92433f069c273d151b9fba9396fd8ba3107b7222f7a1 - 5.3% (3.12 MB)
[#001] sha256:62b0081507f7efc3ea2eca27adf0dd2775060b55a5d31e5e6978adbf9238bb25 - 5.29% (3.11 MB)
[#002] sha256:9362662fcf61d51ab9a7c848491271f9369d72e23f4cd00de6dece0348103004 - 0.0% (931 Bytes)
[#003] sha256:af9fe85a4b28e698da1576a7b120e73bda152b54ecc2e052d265ff4981974191 - 0.0% (223 Bytes)
[#004] sha256:e16028b4fd5f332a0c8796fc0598cc13e284c86b7bd650420e9c79b4ca10be5d - 19.88% (11.7 MB)
[#005] sha256:a0f97ee05bc676d9dd589e929689f085548c1efa4ce139d3ae47024b6c0c10af - 0.0% (490 Bytes)
[#006] sha256:957f4edcc7fea49b4ebc04434658dff0c478db4f9124757da673deca18eabcdb - 18.28% (10.7 MB)
[#007] sha256:ec3624d266f56a7b1782f7b1132bb8a40971deab591064bef6d967e5be5ae3bb - 0.0% (2.39 KB)
[#008] sha256:d40709fd34aadf53607f2eb64f0fe728cb65ca27c9206dc6aad06b7bb05c412c - 0.04% (21.6 KB)
[#009] sha256:606921aa1c60f1551e5a92603f1f5d97375adc03d47c21d379da11a84374401f - 0.04% (21.6 KB)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:7834f36e10ced32e11020e1a8fb4fdc8c62bdb944d9de3c20da0ad4bf9640f7c - 0.02% (9.03 KB)
[#012] sha256:2f2abcce94325f67b7c80e6f4cad375ea2f3341ea578ab7a05316c4a0d09d66f - 0.07% (41.7 KB)
[#013] sha256:1aa0c963b7544a54b11a988f56c2b47381234c46a88e18a777f58c5c13d969a6 - 5.96% (3.5 MB)
[#014] sha256:d9ca817686122510d38fa102bb7f0ebc0437f0e19786da0ba6dac6d686d0349d - 43.25% (25.4 MB)
[#015] sha256:22d1d7565151187710c6b0087d4a25bb8d4d28f877e9242a9cb691a7a2694695 - 1.87% (1.1 MB)
[#016] sha256:d26dfd2c5151954eb83df20fa3ce9350cde4200b2e6ceae9d2ae96673d2a4fbd - 0.0% (295 Bytes)
ADD alpine-minirootfs-3.24.3-armv7.tar.gz / # buildkit
2026-10-21 22:52:08 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-10-21 23:20:41 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2026-10-21 23:20:41 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2026-10-21 23:20:42 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2026-10-21 23:20:42 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2026-10-21 23:20:42 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-10-21 23:20:42 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-10-21 23:20:42 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-10-21 23:20:42 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2026-10-21 23:20:42 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2026-10-21 23:20:42 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.35
2026-10-21 23:20:42 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.35.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.35.tar.xz.asc
2026-10-21 23:20:42 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=5737b98601fe5ab1b8c5db0c82ed3158acb9283ed3081ffe2faffb9ac81455e6
2026-10-21 23:27:38 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-10-21 23:27:38 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2026-10-21 23:30:27 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)"; 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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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-10-21 23:30:27 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2026-10-21 23:30:27 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2026-10-21 23:30:28 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2026-10-21 23:30:28 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2026-10-21 23:30:28 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2026-10-21 23:30:28 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-10-21 23:30:28 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2026-10-21 23:30:28 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2026-10-21 23:30:28 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2026-10-22 10:36:08 UTC (buildkit.dockerfile.v0)ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ # buildkit
2026-10-22 10:36:17 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache git # buildkit
2026-10-22 14:11:05 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c chmod +x /usr/local/bin/install-php-extensions && install-php-extensions gd mysqli zip pdo_mysql opcache sockets exif gmp bcmath pcntl pdo pdo_pgsql pgsql mcrypt apcu redis memcached mongodb pcntl @composer && mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" # buildkit
2026-10-22 15:25:41 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install-php-extensions xdebug xhprof && mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" # buildkit
2026-10-22 15:25:41 UTC (buildkit.dockerfile.v0)COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini # buildkit
sha256:62807191ff8c071a79540f6adce48822ebc4ee79f8680fdceccf30ac18092744
2026-10-22 15:25:48 UTC
64.2 MB
39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.2.35.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_SHA2565737b98601fe5ab1b8c5db0c82ed3158acb9283ed3081ffe2faffb9ac81455e6
PHP_URLhttps://www.php.net/distributions/php-8.2.35.tar.xz
PHP_VERSION8.2.35
[#000] sha256:d3531b7a4f217bdc3426c57bcff84c170f086f456a39689d4a615c6d026c4be0 - 6.22% (4 MB)
[#001] sha256:164274e2686f4a12bec881c2e7a6cbfd992b727496c80b91bdee51b8aa957883 - 5.2% (3.34 MB)
[#002] sha256:f0f065c2e798d9c33e720b2fc1bf00dc704dea889f0e13be5f85030011811620 - 0.0% (930 Bytes)
[#003] sha256:0faba168f8dc1a9028945fcc75bafce79ddcf2b1abf6d5aa0ab012ebb7e3316a - 0.0% (217 Bytes)
[#004] sha256:7a16f10f929f1ec22afcf3647ce3c73128a30f5f6e9fb707a883646ef8efd40c - 18.18% (11.7 MB)
[#005] sha256:7cf5df0865e033ea2173eeebefcd31c93b71afd5b277002daac05d3d7929a1b6 - 0.0% (489 Bytes)
[#006] sha256:7e605c75957f45de79ca42c18b18e32e1f5ff7d3823517e964c938b61b229b15 - 19.48% (12.5 MB)
[#007] sha256:5bf6a003c955c89d0dd05d43558a75d349c189a502fd41fc7b493dc7cd3a90c9 - 0.0% (2.39 KB)
[#008] sha256:af9a3a9e8ed8ecaec9b288d5093c3877d21bc04180069ebcb5a9f7649b8aab26 - 0.03% (21.6 KB)
[#009] sha256:161dd882f2b0c72cace1444ccabf26910e97a5e4f9984ee57b8e42eaa392197c - 0.03% (21.6 KB)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:f5e3abf7e5a7bf2ee2bb9df692e01553d29cc4baa9a0e696cfd4318cb2fc63dc - 0.01% (9.04 KB)
[#012] sha256:bff96816ae7f7a90a5c5602ded3e34f3a4d28e36e37e9ec6791ef96131d8ecbf - 0.06% (41.7 KB)
[#013] sha256:ca3cfa8520e00865368ae5bbdb1acd445a315f1768767ca9164e5c4c1498d569 - 6.22% (3.99 MB)
[#014] sha256:0c49ddc369767ccc6b06f7aa0a3a5d21e757a4c10a00fdab7dcad1d4c34c240d - 42.8% (27.5 MB)
[#015] sha256:3bc5460fd9fce3732516dbca6f81bb0bad835dd1a2b218a3331b8c2ec01a19b5 - 1.75% (1.12 MB)
[#016] sha256:f1b3f94308347c2046c4d2f40f5edc29fa33016ae454f924d3cd5fef21b22410 - 0.0% (294 Bytes)
ADD alpine-minirootfs-3.24.3-aarch64.tar.gz / # buildkit
2026-10-21 22:51:39 UTC (buildkit.dockerfile.v0)CMD ["/bin/sh"]
2026-10-21 23:12:07 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
2026-10-21 23:12:07 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
2026-10-21 23:12:07 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
2026-10-21 23:12:07 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2026-10-21 23:12: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-10-21 23:12:07 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-10-21 23:12:07 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-10-21 23:12:07 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2026-10-21 23:12:07 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC
2026-10-21 23:12:07 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.2.35
2026-10-21 23:12:07 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.2.35.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.2.35.tar.xz.asc
2026-10-21 23:12:07 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=5737b98601fe5ab1b8c5db0c82ed3158acb9283ed3081ffe2faffb9ac81455e6
2026-10-21 23:12:10 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-10-21 23:12:10 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2026-10-21 23:15: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)"; 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=/usr --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --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-10-21 23:15:57 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2026-10-21 23:15:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2026-10-21 23:15:58 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2026-10-21 23:15:58 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2026-10-21 23:15:58 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2026-10-21 23:15:59 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-10-21 23:15:59 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2026-10-21 23:15:59 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2026-10-21 23:15:59 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2026-10-22 10:36:08 UTC (buildkit.dockerfile.v0)ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ # buildkit
2026-10-22 10:36:18 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apk add --no-cache git # buildkit
2026-10-22 14:11:31 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c chmod +x /usr/local/bin/install-php-extensions && install-php-extensions gd mysqli zip pdo_mysql opcache sockets exif gmp bcmath pcntl pdo pdo_pgsql pgsql mcrypt apcu redis memcached mongodb pcntl @composer && mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" # buildkit
2026-10-22 15:25:48 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c install-php-extensions xdebug xhprof && mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" # buildkit
2026-10-22 15:25:48 UTC (buildkit.dockerfile.v0)COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini # buildkit
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.