Namespace
library
Image / Tag
matomo:5.4.0-fpm
Content Digest
sha256:daa8a68421ffacf83b621eb2e8c269e19cc44ed590c6c695072ccfe89cdd37b0
Details
Created

2025-08-28 21:23:07 UTC

Size

191 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

MATOMO_VERSION

5.4.0

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.13.tar.xz.asc

PHP_CFLAGS

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

PHP_CPPFLAGS

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

PHP_INI_DIR

/usr/local/etc/php

PHP_LDFLAGS

-Wl,-O1 -pie

PHP_MEMORY_LIMIT

256M

PHP_SHA256

b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

PHP_URL

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

PHP_VERSION

8.4.13


Layers

[#000] sha256:ab4c7760f4a4bda4b0797f3f0b56bd90b9778b76fc8351f2e1bd7c332b9dcc92 - 15.63% (29.8 MB)

[#001] sha256:d6708e73d196600797dc6d71219618da5bb342ab81dc5cb06cfd9610bd25c4c5 - 0.0% (224 Bytes)

[#002] sha256:c9a88ac768b88beb5757f88a462d21ad5e48ae17f04ea0fbd0585fdc8554ca63 - 58.01% (111 MB)

[#003] sha256:45c826a7be36899aa2341ea60e5622d63b5134c59caf4cf0a47bf9efa4eecffb - 0.0% (226 Bytes)

[#004] sha256:beb25a39812ce8342eacb5a881a2a374d86fa5fbb78dac0cebeb91ad7363618a - 6.89% (13.2 MB)

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

[#006] sha256:fe02eabdfab9796ba5db5d2f7b8b24e2438da35cec468c1b71bc32afa5294404 - 6.97% (13.3 MB)

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

[#008] sha256:dc3d1a7cf65488141728b4c9901ded91aa9e373ebcbd47d21bb03d049f6f5d08 - 0.0% (251 Bytes)

[#009] sha256:4903793cb0981e0ef4c6ba872879f9d7d676dd22f46076cc59a9946f193c3c8f - 0.0% (245 Bytes)

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

[#011] sha256:8cd26d87e3e5535b295015bcd166febe9d031d9e191ce2af9c77ad782c9e78ca - 0.0% (8.98 KB)

[#012] sha256:e12c58337c209b6fb8e005502b609c6d78f71c74e111b3668f72a8c460ef8898 - 1.41% (2.7 MB)

[#013] sha256:54ee40ac0a4d7fa8e867243d9ef01b629577d6843e7e59d9a1959dfd435db568 - 0.0% (327 Bytes)

[#014] sha256:712cebfbeaae8905a4e2ec97ea5d7cbc2463e88e85ea2d3dd4a1396b5e0c9bbe - 11.08% (21.1 MB)

[#015] sha256:36175618bb2bb30013a3deb0166489f7ccb8d02e71f098b1a73a5fe15144355d - 0.0% (342 Bytes)

[#016] sha256:b4ec771cd71a3ac9bd8d70ef99beefff3474d0d31bc15ac65f880e4d53f925e4 - 0.0% (825 Bytes)


History
2025-08-28 21:23:07 UTC (debuerreotype 0.16)

# debian.sh --arch 'i386' out/ 'trixie' '@1759104000'

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-08-28 21:23: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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.13

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=256M

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libfreetype-dev libjpeg-dev libldap2-dev libpng-dev libzip-dev procps ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure gd --with-freetype --with-jpeg; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" gd bcmath ldap mysqli pdo_mysql zip ; pecl install APCu-5.1.27; pecl install redis-6.2.0; docker-php-ext-enable apcu redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV MATOMO_VERSION=5.4.0

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; fetchDeps=" dirmngr gnupg "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps ; curl -fsSL -o matomo.tar.gz "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz"; curl -fsSL -o matomo.tar.gz.asc "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys F529A27008477483777FC23D63BB30D0E5D2C749; gpg --batch --verify matomo.tar.gz.asc matomo.tar.gz; gpgconf --kill all; rm -rf "$GNUPGHOME" matomo.tar.gz.asc; tar -xzf matomo.tar.gz -C /usr/src/; rm matomo.tar.gz; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY php.ini /usr/local/etc/php/conf.d/php-matomo.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /entrypoint.sh # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2025-08-28 21:23:07 UTC

Size

191 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

MATOMO_VERSION

5.4.0

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.13.tar.xz.asc

PHP_CFLAGS

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

PHP_CPPFLAGS

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

PHP_INI_DIR

/usr/local/etc/php

PHP_LDFLAGS

-Wl,-O1 -pie

PHP_MEMORY_LIMIT

256M

PHP_SHA256

b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

PHP_URL

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

PHP_VERSION

8.4.13


Layers

[#000] sha256:8c7716127147648c1751940b9709b6325f2256290d3201662eca2701cadb2cdf - 14.88% (28.4 MB)

[#001] sha256:24403a1f6855abf71a2a5a1dba8cddf2ea0349dc7034854674eea92699c9d272 - 0.0% (224 Bytes)

[#002] sha256:e1cf44d6017a42f5a269318657b7ccbfa56d2604edb26e2eb83f3e602fae3a46 - 58.89% (112 MB)

[#003] sha256:2489d5e860a704a01205fd1d8785abf1ddf0ce491019435d356dcfb46b0e6fbf - 0.0% (223 Bytes)

[#004] sha256:321268317b1001fc88150594bf31408ae0bc0203ba43df2b8814a56b56125d6e - 6.89% (13.2 MB)

[#005] sha256:6900a0b05d51552cca9a89652ff6f850ab08cc13ada91d31c0fab00f275997f8 - 0.0% (487 Bytes)

[#006] sha256:b6e1c97c9051cb359a8cad229e77c3878342f693e709c70af01128f88a3995ca - 6.83% (13 MB)

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

[#008] sha256:6d1ff76c15264220bb6305a3e50a3077c29b9bf9c9fed2ae65f1adc4a98b2363 - 0.0% (249 Bytes)

[#009] sha256:945796cd6373db4d3c85ef44c46a8c62ded4ce5eebe668dc57d641cd361a1dec - 0.0% (243 Bytes)

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

[#011] sha256:8e95d22bebc322419288118f8e8e1013cc69e511d6406c1d4a5c945cd6b20752 - 0.0% (8.98 KB)

[#012] sha256:ba2a7625c32d1c6c492a174dd8bbc5299cefe5d9799670cb622014491c4d07ec - 1.42% (2.71 MB)

[#013] sha256:479bd20a509b993ab350be1d386ed400e6a0f54eda844cc7a75656c3e20bc81a - 0.0% (326 Bytes)

[#014] sha256:8f7e39d87deadf0b75cf7b0d8c884ecc26d28f832a4d18fb9bd3f82fc1c0af0f - 11.08% (21.1 MB)

[#015] sha256:7a0dc2631bdc08c4ae135f82ea8c83a5c717c443eed3929578816a506d0c9020 - 0.0% (343 Bytes)

[#016] sha256:b6feb07400bdf0e55ddd699387077f3eeddfbcc523990530a63cdc32ac67c386 - 0.0% (824 Bytes)


History
2025-08-28 21:23:07 UTC (debuerreotype 0.16)

# debian.sh --arch 'amd64' out/ 'trixie' '@1759104000'

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-08-28 21:23: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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.13

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=256M

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libfreetype-dev libjpeg-dev libldap2-dev libpng-dev libzip-dev procps ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure gd --with-freetype --with-jpeg; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" gd bcmath ldap mysqli pdo_mysql zip ; pecl install APCu-5.1.27; pecl install redis-6.2.0; docker-php-ext-enable apcu redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV MATOMO_VERSION=5.4.0

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; fetchDeps=" dirmngr gnupg "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps ; curl -fsSL -o matomo.tar.gz "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz"; curl -fsSL -o matomo.tar.gz.asc "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys F529A27008477483777FC23D63BB30D0E5D2C749; gpg --batch --verify matomo.tar.gz.asc matomo.tar.gz; gpgconf --kill all; rm -rf "$GNUPGHOME" matomo.tar.gz.asc; tar -xzf matomo.tar.gz -C /usr/src/; rm matomo.tar.gz; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY php.ini /usr/local/etc/php/conf.d/php-matomo.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /entrypoint.sh # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2025-08-28 21:23:07 UTC

Size

166 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

MATOMO_VERSION

5.4.0

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.13.tar.xz.asc

PHP_CFLAGS

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

PHP_CPPFLAGS

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

PHP_INI_DIR

/usr/local/etc/php

PHP_LDFLAGS

-Wl,-O1 -pie

PHP_MEMORY_LIMIT

256M

PHP_SHA256

b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

PHP_URL

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

PHP_VERSION

8.4.13


Layers

[#000] sha256:d2a243ecf382412941b4d6772dba911a8093cf3703c933872fbb7ecc21e27e20 - 16.09% (26.7 MB)

[#001] sha256:ba30e53af3fd90625e3930f2c8f20dab44997ff89267d94cde7a2db8ad689d29 - 0.0% (224 Bytes)

[#002] sha256:239f98d12f26b17f956ab32c631b5e11d654a65e66f6f570c53e485cbbb7c0c1 - 54.62% (90.5 MB)

[#003] sha256:35329929df9ad95340fbbd82258252ec5b95409c9042b856341f013ea50e5358 - 0.0% (223 Bytes)

[#004] sha256:32c86ea11bb9f9da77db6121d21f4907334275db7a63d6985e1d7c4bf4b30cb3 - 7.94% (13.2 MB)

[#005] sha256:69099271219ea0c49d8fd7aeafca2bd6bf3092810c1f3c5cb259a7c828aa77aa - 0.0% (486 Bytes)

[#006] sha256:757b03b0e2aef8297b709b0a7dd66b220e27e80521a96e0f962356862a9dfad7 - 7.04% (11.7 MB)

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

[#008] sha256:cc60626dc28502bdad996a0739b7702e3d7db76cccd9eb17ce014e79c1d32d96 - 0.0% (251 Bytes)

[#009] sha256:b00d80c64974e08f29547b24fabae24f17583f913d6ceade0d06cceb9ce9bcdf - 0.0% (246 Bytes)

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

[#011] sha256:f705c0a27a4f4f4c6ef0307d1996780557eba4e835334b9b95217df49d771d1f - 0.01% (8.98 KB)

[#012] sha256:33dcb8f76fd54434dedb829be886a01d411bc9d132d42dffd3a75ff40e78c6a5 - 1.53% (2.54 MB)

[#013] sha256:84905c07e5c45f1b1a9a011987ead344a19296dc124f7868f8c7ebd3c1f12a74 - 0.0% (328 Bytes)

[#014] sha256:b2b9dc83917b6f68cdd1c2197a2b3379cef5ff9fa54fcef213f7fa6112fbb9b3 - 12.77% (21.1 MB)

[#015] sha256:575b318f68f5fea2447899c93aed7849705ee03a11d75bf8695b27ecac6cc8c9 - 0.0% (342 Bytes)

[#016] sha256:2ff9aa3956353f93ddc641c9becd23d6280d7da1a3fe443484de49981cd68590 - 0.0% (825 Bytes)


History
2025-08-28 21:23:07 UTC (debuerreotype 0.16)

# debian.sh --arch 'armel' out/ 'trixie' '@1759104000'

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-08-28 21:23: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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.13

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=256M

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libfreetype-dev libjpeg-dev libldap2-dev libpng-dev libzip-dev procps ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure gd --with-freetype --with-jpeg; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" gd bcmath ldap mysqli pdo_mysql zip ; pecl install APCu-5.1.27; pecl install redis-6.2.0; docker-php-ext-enable apcu redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV MATOMO_VERSION=5.4.0

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; fetchDeps=" dirmngr gnupg "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps ; curl -fsSL -o matomo.tar.gz "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz"; curl -fsSL -o matomo.tar.gz.asc "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys F529A27008477483777FC23D63BB30D0E5D2C749; gpg --batch --verify matomo.tar.gz.asc matomo.tar.gz; gpgconf --kill all; rm -rf "$GNUPGHOME" matomo.tar.gz.asc; tar -xzf matomo.tar.gz -C /usr/src/; rm matomo.tar.gz; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY php.ini /usr/local/etc/php/conf.d/php-matomo.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /entrypoint.sh # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2025-08-28 21:23:07 UTC

Size

155 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

MATOMO_VERSION

5.4.0

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.13.tar.xz.asc

PHP_CFLAGS

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

PHP_CPPFLAGS

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

PHP_INI_DIR

/usr/local/etc/php

PHP_LDFLAGS

-Wl,-O1 -pie

PHP_MEMORY_LIMIT

256M

PHP_SHA256

b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

PHP_URL

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

PHP_VERSION

8.4.13


Layers

[#000] sha256:0289e98159900b326d4cedde367bf225e25835a3ad879647f17f922e43cfa884 - 16.13% (25 MB)

[#001] sha256:1fbe80b6e3df229a2a578894c71141f1b172fde8a0fbb3bc076f2797b4ceeb5e - 0.0% (224 Bytes)

[#002] sha256:256b56af79f8dbbb9963f1ed9ebb2b7ba28418bf59a199a4b65f858432c0b097 - 53.07% (82.3 MB)

[#003] sha256:1dfc7f0ad498290fd4c6d221f15d45cc1cb7137cd2e59b6686d6183f06e76896 - 0.0% (224 Bytes)

[#004] sha256:68f4e7849cf346c8823c38b743fbbdcff9ef7c47621b6b627a006a1707c3f98b - 8.49% (13.2 MB)

[#005] sha256:5b6b72576967174365cb927f5278719237bcc31e4a3bcea149ea7f6920bdda29 - 0.0% (487 Bytes)

[#006] sha256:0a75ac9696b5afff338408bdbf108d2f21b478cc7f3fa323dd4380a0a761d4fb - 7.11% (11 MB)

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

[#008] sha256:26dd7ee140fe7c1b7c230e5445e647dfe523292f458c89a8a0b43138115985ec - 0.0% (253 Bytes)

[#009] sha256:034d4549cecdc9d359c044cc271bff63ac4feee23d1994fe6afb0efe5839a5cc - 0.0% (248 Bytes)

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

[#011] sha256:ad9442937856cc30b1f8d3c789bc682ba11073d5084aa7ae612a39b83654e85a - 0.01% (8.98 KB)

[#012] sha256:891bf9b7aebea8303adbc5d6444a4295c911430e9879201c786568dbb2318e78 - 1.55% (2.4 MB)

[#013] sha256:53f0f86803df5dd8921c6ef2b4f887ea0abae2a88ae0fbc1596bf7f2743a29d1 - 0.0% (327 Bytes)

[#014] sha256:200f15004b03d0e0b8fd116aa00915e620c42b7d5de1c44abddcb66b87589f41 - 13.64% (21.1 MB)

[#015] sha256:7d514e23b2d15087f8753d8e7cfbfdc16809d3527e72b801dba08fd153fa3b41 - 0.0% (344 Bytes)

[#016] sha256:9390ea9d92cdb8bd9fbfcf735661d606b1077b50e80e80c6ff843efa2fb2de97 - 0.0% (824 Bytes)


History
2025-08-28 21:23:07 UTC (debuerreotype 0.16)

# debian.sh --arch 'armhf' out/ 'trixie' '@1759104000'

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-08-28 21:23: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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.13

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=256M

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libfreetype-dev libjpeg-dev libldap2-dev libpng-dev libzip-dev procps ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure gd --with-freetype --with-jpeg; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" gd bcmath ldap mysqli pdo_mysql zip ; pecl install APCu-5.1.27; pecl install redis-6.2.0; docker-php-ext-enable apcu redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV MATOMO_VERSION=5.4.0

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; fetchDeps=" dirmngr gnupg "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps ; curl -fsSL -o matomo.tar.gz "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz"; curl -fsSL -o matomo.tar.gz.asc "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys F529A27008477483777FC23D63BB30D0E5D2C749; gpg --batch --verify matomo.tar.gz.asc matomo.tar.gz; gpgconf --kill all; rm -rf "$GNUPGHOME" matomo.tar.gz.asc; tar -xzf matomo.tar.gz -C /usr/src/; rm matomo.tar.gz; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY php.ini /usr/local/etc/php/conf.d/php-matomo.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /entrypoint.sh # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2025-08-28 21:23:07 UTC

Size

184 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

MATOMO_VERSION

5.4.0

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.13.tar.xz.asc

PHP_CFLAGS

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

PHP_CPPFLAGS

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

PHP_INI_DIR

/usr/local/etc/php

PHP_LDFLAGS

-Wl,-O1 -pie

PHP_MEMORY_LIMIT

256M

PHP_SHA256

b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

PHP_URL

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

PHP_VERSION

8.4.13


Layers

[#000] sha256:e363695fcb930d5f18449254c0052117582c3de4263c91575b0a9040c986e412 - 15.66% (28.7 MB)

[#001] sha256:7325e87446101a86960da1588163447c1198447a48bd44fcb5efa2062c2514e9 - 0.0% (224 Bytes)

[#002] sha256:0e8ef5442630c413a5c9992ae040ca50d34b1e2524044804f3b885d7bd35033a - 57.25% (105 MB)

[#003] sha256:b5b4297d20872e106efa28d4f39ee99f6afec32ca7426170a75d0fc5b4a3b0e8 - 0.0% (225 Bytes)

[#004] sha256:d80f623f5a3cf934e2cc95c33e8364ba015871e95f5cfa42c4575cd4ef2aa16b - 7.17% (13.2 MB)

[#005] sha256:51b8ce51f03713edcab69c7e20140bdc8d6420b1757bd8007fd23c5a83fa4df4 - 0.0% (488 Bytes)

[#006] sha256:92720b48643ff0e797a8647c156925be3e1f59e9c46e280e4d8c7b76abf2bd27 - 6.92% (12.7 MB)

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

[#008] sha256:05770538f18fbebc37794b367f29eee0bb412045c7bc20549e730b521bcd002a - 0.0% (251 Bytes)

[#009] sha256:da608b3f5ac7eac4ed2f9949712fb4c89ae9150415b2ef9fc7aa78a010d113e5 - 0.0% (246 Bytes)

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

[#011] sha256:f4166b68a83e53730ec0add7a5f551c846417e4e8c7ab28d3aec2f803f114394 - 0.0% (8.98 KB)

[#012] sha256:1666316021147b1bfdda6609c91242ac19f54e23d0946868ed5d6d63fa4fc14b - 1.46% (2.68 MB)

[#013] sha256:265270009225b35e62f421f3f761cd6aa3ea28016266d82fbc8f2fadec41fc8b - 0.0% (327 Bytes)

[#014] sha256:e8c3358f1eb87ce65fb88b4f128b554574aa10ace09820daa866c718c7739ff9 - 11.52% (21.1 MB)

[#015] sha256:37f4bbf24940127ead835cee151f6b58138adcdcd37eff87798a09531599df4c - 0.0% (340 Bytes)

[#016] sha256:95da079af98080087e001a9bbedb97dbbc82837123fb74ba25c2dcb66c4e655d - 0.0% (824 Bytes)


History
2025-08-28 21:23:07 UTC (debuerreotype 0.16)

# debian.sh --arch 'arm64' out/ 'trixie' '@1759104000'

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-08-28 21:23: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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.13

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=256M

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libfreetype-dev libjpeg-dev libldap2-dev libpng-dev libzip-dev procps ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure gd --with-freetype --with-jpeg; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" gd bcmath ldap mysqli pdo_mysql zip ; pecl install APCu-5.1.27; pecl install redis-6.2.0; docker-php-ext-enable apcu redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV MATOMO_VERSION=5.4.0

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; fetchDeps=" dirmngr gnupg "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps ; curl -fsSL -o matomo.tar.gz "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz"; curl -fsSL -o matomo.tar.gz.asc "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys F529A27008477483777FC23D63BB30D0E5D2C749; gpg --batch --verify matomo.tar.gz.asc matomo.tar.gz; gpgconf --kill all; rm -rf "$GNUPGHOME" matomo.tar.gz.asc; tar -xzf matomo.tar.gz -C /usr/src/; rm matomo.tar.gz; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY php.ini /usr/local/etc/php/conf.d/php-matomo.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /entrypoint.sh # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2025-08-28 21:23:07 UTC

Size

187 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

MATOMO_VERSION

5.4.0

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.13.tar.xz.asc

PHP_CFLAGS

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

PHP_CPPFLAGS

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

PHP_INI_DIR

/usr/local/etc/php

PHP_LDFLAGS

-Wl,-O1 -pie

PHP_MEMORY_LIMIT

256M

PHP_SHA256

b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

PHP_URL

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

PHP_VERSION

8.4.13


Layers

[#000] sha256:8bcecd3ced4047f6a4d35464fc2ee9b45e7fcc10b49690427794f4421b0552ab - 17.1% (32 MB)

[#001] sha256:25d8f05f06dc824d87111df6e83c98b44d4b30120744017674fa115b47c2dbe6 - 0.0% (226 Bytes)

[#002] sha256:75015a3f4b08f0357c989a4c27950c8a6de956a67874e0df0e8876482f1c6285 - 55.78% (105 MB)

[#003] sha256:55bbf93152fe00ebb17d96bb0b9dce5763e9ee0f645695274ef06bcf783421bd - 0.0% (226 Bytes)

[#004] sha256:fdf0c1b00ea08e48d1794bc4c72483b63d1591d3a28126a8eda5b3cc5a25b110 - 7.02% (13.2 MB)

[#005] sha256:e4ace55bde89049fe405201af82251e0d0604f18f31c45b751d245e04a3286eb - 0.0% (486 Bytes)

[#006] sha256:4a96e3bd6bd179f05bf3e8c9fe10ab59c78e00cf757fdaf1f82370b266104e27 - 7.23% (13.5 MB)

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

[#008] sha256:37084f29de73160bdf50ed756fc3e4e448ed9f1e07aa59ce73f8b23074c095f4 - 0.0% (250 Bytes)

[#009] sha256:a254ab8db2383e46843a175f461c0500f27dc22227697a0271bb705b33cf6192 - 0.0% (246 Bytes)

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

[#011] sha256:163899c195ea4b0dcb5680fb6ac04f71892583dd6490f6a3e99e1ba161449d86 - 0.0% (8.98 KB)

[#012] sha256:1599c762f91d86ed79e47435acdae5494c4f586cb9548a4843ffe59c6d968948 - 1.58% (2.95 MB)

[#013] sha256:fe10883a1a885bb7bfe8ec11862b47ab9d68117f4fbc2f6fc6db11248909e1cc - 0.0% (329 Bytes)

[#014] sha256:f32541bfc2329f1d9647391afaf2264d487b74ff9deebe7564082aeae61db94d - 11.29% (21.1 MB)

[#015] sha256:36e4977322367eba6a0372af817b289e17a93f9ee9a8674c4620bb3255b0abf1 - 0.0% (343 Bytes)

[#016] sha256:5f4221bd2d040d88b360d610b70768481072f3bea4c216f6ce62a372bb31efdf - 0.0% (823 Bytes)


History
2025-08-28 21:23:07 UTC (debuerreotype 0.16)

# debian.sh --arch 'ppc64el' out/ 'trixie' '@1759104000'

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-08-28 21:23: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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.13

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=256M

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libfreetype-dev libjpeg-dev libldap2-dev libpng-dev libzip-dev procps ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure gd --with-freetype --with-jpeg; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" gd bcmath ldap mysqli pdo_mysql zip ; pecl install APCu-5.1.27; pecl install redis-6.2.0; docker-php-ext-enable apcu redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV MATOMO_VERSION=5.4.0

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; fetchDeps=" dirmngr gnupg "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps ; curl -fsSL -o matomo.tar.gz "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz"; curl -fsSL -o matomo.tar.gz.asc "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys F529A27008477483777FC23D63BB30D0E5D2C749; gpg --batch --verify matomo.tar.gz.asc matomo.tar.gz; gpgconf --kill all; rm -rf "$GNUPGHOME" matomo.tar.gz.asc; tar -xzf matomo.tar.gz -C /usr/src/; rm matomo.tar.gz; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY php.ini /usr/local/etc/php/conf.d/php-matomo.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /entrypoint.sh # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2025-08-28 21:23:07 UTC

Size

216 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

MATOMO_VERSION

5.4.0

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.13.tar.xz.asc

PHP_CFLAGS

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

PHP_CPPFLAGS

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

PHP_INI_DIR

/usr/local/etc/php

PHP_LDFLAGS

-Wl,-O1 -pie

PHP_MEMORY_LIMIT

256M

PHP_SHA256

b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

PHP_URL

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

PHP_VERSION

8.4.13


Layers

[#000] sha256:ecc6f9aec21fb94a493c2875c244e720a2f7c6c034063ce87b2f5b6b46962ec9 - 12.47% (27 MB)

[#001] sha256:12e10c25f1d43bda19fe1addca79e55bd60680b6683c485853db1be0763dd7e2 - 0.0% (224 Bytes)

[#002] sha256:03438fb8247e71c15afcd0508b678af32b8a41a4cd64dda788e8224b32557902 - 64.66% (140 MB)

[#003] sha256:df117f051d654fe662d0af341155be2d955517920079566410cd20daddb0a237 - 0.0% (225 Bytes)

[#004] sha256:02c353fefbfaf4aa69515b70b93cdeb67a4f375daa885b726663a41a43e9990b - 6.08% (13.2 MB)

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

[#006] sha256:bbe6e4d9e7331fac3f57c2b2b00ab54e27192d3a40f2268037bd2146db0aa0b8 - 5.8% (12.5 MB)

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

[#008] sha256:0dcad5f66c7371727badca048d0c8c9c405674088c9068d8651dc83bc3d64a10 - 0.0% (251 Bytes)

[#009] sha256:7a2ee6f5ca80c2cc8c17d9d56d3515e3599535f05b6a100ad3bcd591ed5cb239 - 0.0% (248 Bytes)

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

[#011] sha256:114b7d913dfbadf888473fc63f4c24577df38b2f87d071b79b64dac5dc1d2123 - 0.0% (8.98 KB)

[#012] sha256:ec8860d8f4f7f72b99e3897a72d53ed1364cdd3da141a60c3067e3ac1d83dd12 - 1.2% (2.6 MB)

[#013] sha256:cdb5b440094049b4d50ee3a5227e8eb8ec14405780c1764ff625f09f19ad5bfa - 0.0% (329 Bytes)

[#014] sha256:c68f339b30facdaee0aad15c6dd69eaf47d7c0cb6ff5ea502131c09bcad1d078 - 9.78% (21.1 MB)

[#015] sha256:fb40769cb815407fcc174f4a2220bb254b7e6866025566616eccaa1287e375f7 - 0.0% (346 Bytes)

[#016] sha256:3ac5929cc49f9237174443b22dd86986b4f11a69427f48dc39012d245d1b0068 - 0.0% (824 Bytes)


History
2025-08-28 21:23:07 UTC (debuerreotype 0.16)

# debian.sh --arch 'riscv64' out/ 'trixie' '@1759104000'

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-08-28 21:23: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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.13

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=256M

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libfreetype-dev libjpeg-dev libldap2-dev libpng-dev libzip-dev procps ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure gd --with-freetype --with-jpeg; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" gd bcmath ldap mysqli pdo_mysql zip ; pecl install APCu-5.1.27; pecl install redis-6.2.0; docker-php-ext-enable apcu redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV MATOMO_VERSION=5.4.0

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; fetchDeps=" dirmngr gnupg "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps ; curl -fsSL -o matomo.tar.gz "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz"; curl -fsSL -o matomo.tar.gz.asc "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys F529A27008477483777FC23D63BB30D0E5D2C749; gpg --batch --verify matomo.tar.gz.asc matomo.tar.gz; gpgconf --kill all; rm -rf "$GNUPGHOME" matomo.tar.gz.asc; tar -xzf matomo.tar.gz -C /usr/src/; rm matomo.tar.gz; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY php.ini /usr/local/etc/php/conf.d/php-matomo.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /entrypoint.sh # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Details
Created

2025-08-28 21:23:07 UTC

Size

167 MB

Content Digest
Environment
GPG_KEYS

AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

MATOMO_VERSION

5.4.0

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.4.13.tar.xz.asc

PHP_CFLAGS

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

PHP_CPPFLAGS

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

PHP_INI_DIR

/usr/local/etc/php

PHP_LDFLAGS

-Wl,-O1 -pie

PHP_MEMORY_LIMIT

256M

PHP_SHA256

b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

PHP_URL

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

PHP_VERSION

8.4.13


Layers

[#000] sha256:924b0740f35a15fc20142be5c392f6b033c8051daecf16d2db38c22d6d73eb53 - 17.08% (28.5 MB)

[#001] sha256:af9ee178226f7ea0f482af09b7dc3ba5fca7c07de96e60ad828b1737709e6b19 - 0.0% (223 Bytes)

[#002] sha256:e8b8c6f589e7cb0b9aff90a6df6a7cccfae60ed23d9fc4328b15d0c44aa0266e - 52.98% (88.3 MB)

[#003] sha256:674ff7c7e8a7de8708af6056d40b56dffeb3ae246f618226bf482e0f207ff014 - 0.0% (222 Bytes)

[#004] sha256:9ff1476c1c43568b2496f153d99c86682b58e1c944937e2ef66cfadd864be99f - 7.89% (13.2 MB)

[#005] sha256:2d00c9228c3c298593e022fedd37a7d661ac013f48cfe96698d3ba1fff67ec0b - 0.0% (487 Bytes)

[#006] sha256:b1a758436520f98748d225f3f91ad4755256953b60b15d15974dc2e6e132ade5 - 7.7% (12.8 MB)

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

[#008] sha256:b6d2e6fe318a492f0ec9b6b4c8d2c166e24c030b48ade0899157828d0faaaf65 - 0.0% (251 Bytes)

[#009] sha256:03f6affd3d6badae40098af12688ec2732ba00e4d71f663a48104f456f2f8254 - 0.0% (246 Bytes)

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

[#011] sha256:00243157e171986a4d0f2e02daf6fe956074f321715754f855046f8dfb148c28 - 0.01% (8.98 KB)

[#012] sha256:615a5ce2bed878804bc7f1470a3ca432e1c54c05b15ba0eb9d4cc136475643e1 - 1.64% (2.74 MB)

[#013] sha256:25fecd6442c57697a78d1116fb41e105b21b0ed45063020d3dc0f076918b4a23 - 0.0% (328 Bytes)

[#014] sha256:bef895214d97b73f03e776dd790ce73f3961950784dac62d927058cdec2bd492 - 12.69% (21.1 MB)

[#015] sha256:1a7d83148524c69409d31d2c5f862a63696ddb480200174b9a4c3c21486a50cf - 0.0% (343 Bytes)

[#016] sha256:0a456b93ff366d9f7ef44f4df398449125fb8d99df99d722d591fa46af3e96d6 - 0.0% (824 Bytes)


History
2025-08-28 21:23:07 UTC (debuerreotype 0.16)

# debian.sh --arch 's390x' out/ 'trixie' '@1759104000'

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-08-28 21:23: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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=AFD8691FDAEDF03BDF6E460563F15A9B715376CA 9D7F99A0CB8F05C8A6958D6256A97AF7600A39A6 0616E93D95AF471243E26761770426E17EBBB3DD

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.4.13

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=b4f27adf30bcf262eacf93c78250dd811980f20f3b90d79a3dc11248681842df

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; ./configure --build="$gnuArch" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

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

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; cd /usr/local/etc; if [ -d php-fpm.d ]; then sed 's!=NONE/!=!g' php-fpm.conf.default | tee php-fpm.conf > /dev/null; cp php-fpm.d/www.conf.default php-fpm.d/www.conf; else mkdir php-fpm.d; cp php-fpm.conf.default php-fpm.d/www.conf; { echo '[global]'; echo 'include=etc/php-fpm.d/*.conf'; } | tee php-fpm.conf; fi; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '[www]'; echo 'listen = 9000'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV PHP_MEMORY_LIMIT=256M

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libfreetype-dev libjpeg-dev libldap2-dev libpng-dev libzip-dev procps ; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; docker-php-ext-configure gd --with-freetype --with-jpeg; docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; docker-php-ext-install -j "$(nproc)" gd bcmath ldap mysqli pdo_mysql zip ; pecl install APCu-5.1.27; pecl install redis-6.2.0; docker-php-ext-enable apcu redis ; rm -r /tmp/pear; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -rt apt-mark manual; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c { echo 'opcache.memory_consumption=128'; echo 'opcache.interned_strings_buffer=8'; echo 'opcache.max_accelerated_files=4000'; echo 'opcache.revalidate_freq=2'; echo 'opcache.fast_shutdown=1'; } > /usr/local/etc/php/conf.d/opcache-recommended.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENV MATOMO_VERSION=5.4.0

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -ex; fetchDeps=" dirmngr gnupg "; apt-get update; apt-get install -y --no-install-recommends $fetchDeps ; curl -fsSL -o matomo.tar.gz "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz"; curl -fsSL -o matomo.tar.gz.asc "https://builds.matomo.org/matomo-${MATOMO_VERSION}.tar.gz.asc"; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys F529A27008477483777FC23D63BB30D0E5D2C749; gpg --batch --verify matomo.tar.gz.asc matomo.tar.gz; gpgconf --kill all; rm -rf "$GNUPGHOME" matomo.tar.gz.asc; tar -xzf matomo.tar.gz -C /usr/src/; rm matomo.tar.gz; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $fetchDeps; apt-get dist-clean # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY php.ini /usr/local/etc/php/conf.d/php-matomo.ini # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

COPY docker-entrypoint.sh /entrypoint.sh # buildkit

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

VOLUME [/var/www/html]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/entrypoint.sh"]

2025-08-28 21:23:07 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.

Delete