Namespace
1panel
Image / Tag
php:8.1.33-fpm
Content Digest
sha256:987caac0347bd607c0ed5ece0a86a9c6cab1506d61ae66ede99f620eb44ea284
Details
Created

2025-10-22 02:42:21 UTC

Size

177 MB

Content Digest
Environment
COMPOSER_HOME

/tmp/.composer

GPG_KEYS

528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD

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.1.33.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_SHA256

9db83bf4590375562bc1a10b353cccbcf9fcfc56c58b7c8fb814e6865bb928d1

PHP_URL

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

PHP_VERSION

8.1.33


Layers

[#000] sha256:38513bd7256313495cdd83b3b0915a633cfa475dc2a07072ab2c8d191020ca5d - 16.06% (28.4 MB)

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

[#002] sha256:0a75e3ea43b5dd4fef842a753e3b282e9bc50a1f5f0e66119ab66b6ebdecdc3b - 63.56% (112 MB)

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

[#004] sha256:0e6bc978486c199f585e9b9bf58755cf530f186e6f8c90b430cd015a24971f42 - 6.5% (11.5 MB)

[#005] sha256:7225c39c2e8f38fbf219c3a93aaa476dd687edbc9357ede883fcb429676668c4 - 0.0% (487 Bytes)

[#006] sha256:a94fc793c5cf27ba62a5cb5a5e9c42aecc01e9c78df5c3b6b8381f221d31b526 - 6.14% (10.8 MB)

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

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

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

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

[#011] sha256:011c9f96a3781796a53d0cbb91fe4519daf17a8b9f82a14c841643f6bdbb0b79 - 0.0% (8.67 KB)

[#012] sha256:c0e2925b942c8b4fa6bd87a0d496b35281cfd79010ea747fb004a7a7ab0f4a00 - 0.0% (298 Bytes)

[#013] sha256:39ab367105b37d9265351efe90dae811692011307f7e57e8708eb61be9c94b3b - 0.0% (2.69 KB)

[#014] sha256:bb2a98d7c78d8277a25020fc5a04cb84cba8f20cd7e6157995ccc95f519376f4 - 0.02% (35.1 KB)

[#015] sha256:abda28871bfbef2c619188ba5ee09ba4897a1e07a6c74a6f0f5f5db83941781b - 7.3% (12.9 MB)

[#016] sha256:7bc77836ae71354a82de5b73c413a70dbbe020f0e0af6c712e99f8efbf4485bb - 0.41% (735 KB)

[#017] sha256:691d8d9b802cd46aa2d4387e8f0df44a86aeff04a5cc1f1191b3fc41229fba08 - 0.02% (35.1 KB)

[#018] sha256:108e6c43685c5c3c0217bc0fd7fd64183cbb2f6056459e19fc012feb151feb21 - 0.0% (735 Bytes)

[#019] sha256:a77df5d188e257d4f716e6d1b87f715c460c31a9ce6f7b8f20c8254f1177b45f - 0.0% (92 Bytes)


History
2025-08-08 00:02:22 UTC (debuerreotype 0.16)

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

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.1.33

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=9db83bf4590375562bc1a10b353cccbcf9fcfc56c58b7c8fb814e6865bb928d1

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 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-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-10-22 02:42:10 UTC (buildkit.dockerfile.v0)

COPY ./data/php-fpm.ini /etc/supervisor.d/php-fpm.ini # buildkit

2025-10-22 02:42:10 UTC (buildkit.dockerfile.v0)

COPY ./data/supervisord.conf /etc/supervisord.conf # buildkit

2025-10-22 02:42:10 UTC (buildkit.dockerfile.v0)

COPY ./data/install-php-extensions /usr/local/bin/ # buildkit

2025-10-22 02:42:19 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends supervisor && mkdir -p /var/log/supervisor /etc/supervisor/conf.d && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit

2025-10-22 02:42:21 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c curl -o /tmp/composer-setup.php https://getcomposer.org/installer && php /tmp/composer-setup.php --install-dir=/tmp && mv /tmp/composer.phar /usr/bin/composer && chmod +x /usr/bin/composer && rm -rf /tmp/composer-setup.php # buildkit

2025-10-22 02:42:21 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c chmod uga+x /usr/local/bin/install-php-extensions # buildkit

2025-10-22 02:42:21 UTC (buildkit.dockerfile.v0)

ENV COMPOSER_HOME=/tmp/.composer

2025-10-22 02:42:21 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c usermod -u 1000 www-data && groupmod -g 1000 www-data # buildkit

2025-10-22 02:42:21 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["supervisord" "--nodaemon" "--configuration" "/etc/supervisord.conf"]

2025-10-22 02:42:21 UTC (buildkit.dockerfile.v0)

WORKDIR /www

Details
Created

2025-10-22 02:43:32 UTC

Size

141 MB

Content Digest
Environment
COMPOSER_HOME

/tmp/.composer

GPG_KEYS

528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD

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.1.33.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_SHA256

9db83bf4590375562bc1a10b353cccbcf9fcfc56c58b7c8fb814e6865bb928d1

PHP_URL

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

PHP_VERSION

8.1.33


Layers

[#000] sha256:f157a4589edc88a89367c83c97b73205a4a80cffc6af7a71b789000a1bc8763e - 17.75% (25 MB)

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

[#002] sha256:1a69892f4e2534b1ed946868528881ce694d150f860079670a2ce93056b18163 - 58.39% (82.2 MB)

[#003] sha256:09dd0df3a9927512794c6730acd6553081fba1607597a4c1ed4f2406302ed981 - 0.0% (223 Bytes)

[#004] sha256:b33b4eacf31c2d2e5036e5a25ec91166015509d05affa46e2c21daca1d44a051 - 8.16% (11.5 MB)

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

[#006] sha256:425cf22e9c8b4226d3ed51adfe070a44be457f587fbc4c1bd6ea8d5409bf1d55 - 6.5% (9.15 MB)

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

[#008] sha256:d9fef9f815eb13c23d6231a689975298ef23267d3d229da05d598d724510cabd - 0.0% (252 Bytes)

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

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

[#011] sha256:2dfcee73a4061f5147a44824f5ac89589b4be31b83e24f9605837cac6ef742c9 - 0.01% (8.67 KB)

[#012] sha256:8bbba64e398e63008131aa5b0bd4ee65ad847b922650862365194f8f2b56dd9f - 0.0% (298 Bytes)

[#013] sha256:73e703d6037c6ab9294f595c548ce22ea99f20fff6dd89224f8f2fae9ca9a4d3 - 0.0% (2.69 KB)

[#014] sha256:a234f09074c0dffdcf57014c5c1e0d609c9634752768c4bea54df88bcfd87c85 - 0.02% (35.1 KB)

[#015] sha256:0a0fcba77acd2d38a4c29559b487dd612b6f0111fd660d3961e3c7d3501956d7 - 8.63% (12.2 MB)

[#016] sha256:5f3260e9bd721c449c71a2892d99a7f7ade76e212bae86026f876e2fc561ec9b - 0.51% (735 KB)

[#017] sha256:efd4f7275b93cd9508b3de14ef56311b5d73adf79eccfc9c11addcb9312e5011 - 0.02% (35.1 KB)

[#018] sha256:8bbb862f8da7b3714226bbfc362e4d03896777fd03de86db4ef200c25f051b86 - 0.0% (736 Bytes)

[#019] sha256:b482c94d7af608885668e4ed40a8de8d9de7248c3995add08903693b5f292454 - 0.0% (92 Bytes)


History
2025-08-08 00:02:22 UTC (debuerreotype 0.16)

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

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.1.33

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=9db83bf4590375562bc1a10b353cccbcf9fcfc56c58b7c8fb814e6865bb928d1

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 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-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-10-22 02:42:08 UTC (buildkit.dockerfile.v0)

COPY ./data/php-fpm.ini /etc/supervisor.d/php-fpm.ini # buildkit

2025-10-22 02:42:09 UTC (buildkit.dockerfile.v0)

COPY ./data/supervisord.conf /etc/supervisord.conf # buildkit

2025-10-22 02:42:09 UTC (buildkit.dockerfile.v0)

COPY ./data/install-php-extensions /usr/local/bin/ # buildkit

2025-10-22 02:43:28 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends supervisor && mkdir -p /var/log/supervisor /etc/supervisor/conf.d && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit

2025-10-22 02:43:32 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c curl -o /tmp/composer-setup.php https://getcomposer.org/installer && php /tmp/composer-setup.php --install-dir=/tmp && mv /tmp/composer.phar /usr/bin/composer && chmod +x /usr/bin/composer && rm -rf /tmp/composer-setup.php # buildkit

2025-10-22 02:43:32 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c chmod uga+x /usr/local/bin/install-php-extensions # buildkit

2025-10-22 02:43:32 UTC (buildkit.dockerfile.v0)

ENV COMPOSER_HOME=/tmp/.composer

2025-10-22 02:43:32 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c usermod -u 1000 www-data && groupmod -g 1000 www-data # buildkit

2025-10-22 02:43:32 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["supervisord" "--nodaemon" "--configuration" "/etc/supervisord.conf"]

2025-10-22 02:43:32 UTC (buildkit.dockerfile.v0)

WORKDIR /www

Details
Created

2025-10-22 02:43:46 UTC

Size

170 MB

Content Digest
Environment
COMPOSER_HOME

/tmp/.composer

GPG_KEYS

528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD

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.1.33.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_SHA256

9db83bf4590375562bc1a10b353cccbcf9fcfc56c58b7c8fb814e6865bb928d1

PHP_URL

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

PHP_VERSION

8.1.33


Layers

[#000] sha256:a16e551192670581ec8359c70ab9eebf8f2af5468ffc79b3d4f9ce21b0366f47 - 16.94% (28.7 MB)

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

[#002] sha256:1a5b737f0ca06312c67bbb2caf4b555ef12414857b8347509dc3eb62d6437a4f - 61.9% (105 MB)

[#003] sha256:2bc30db931ae51cc4316054154ee5cdc4ec74713f98644a1efa015c620ac49cd - 0.0% (224 Bytes)

[#004] sha256:2ac9ec636f59f640e4d42bed63626ad4887628d9983708379000c5ac5071366b - 6.77% (11.5 MB)

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

[#006] sha256:c9028703f69fa147ea2786f58de91f7502b24b5df1111c9dae3a3a338089ab83 - 6.41% (10.9 MB)

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

[#008] sha256:25f72d14faf85a03298dd458fc5fe6001a3546bd0c77be891d5d88a3098b555e - 0.0% (249 Bytes)

[#009] sha256:75db476fa56d3b5a89ca50ca60f5ef1f7a1aa44e4bee1d91c6735a1b387c98f5 - 0.0% (244 Bytes)

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

[#011] sha256:3e07561d41ce9e794faf3c6ab92f1bca4262ea6c47c23559a17c9d01874f064b - 0.0% (8.68 KB)

[#012] sha256:c88e59ec131b62a2e11950f3aefa62e494513ab6feb1c6eebfbff19f12ff8498 - 0.0% (298 Bytes)

[#013] sha256:5c348872eeb1155de1b929a1531c419656a978b080ca4e518c5ec7067555db1b - 0.0% (2.69 KB)

[#014] sha256:0bd570afc0bce89b98f838ff9985b32201a43e4c529feb511edb2a01b046017d - 0.02% (35.1 KB)

[#015] sha256:5f2fe37e9b7eafb96f06eaad490e9244cdee216222348873313df26da1c0f80c - 7.52% (12.8 MB)

[#016] sha256:2ff2104baf3e5d319e7ac183b4c8c2e07b3a891d484a97f187104f544bbbde0c - 0.42% (735 KB)

[#017] sha256:1c79dc59e9cfe51dac173c616c78e97b12112f686e5571070bce398ee6bc77ad - 0.02% (35.1 KB)

[#018] sha256:63aa51f5bb640c3d075b282f3d146764774afe0ec244b0589a537c714d4d6477 - 0.0% (738 Bytes)

[#019] sha256:bcda66b422ca567855ffc0c6323f4e4a518c34cf40edbbea80e84246a0df87a2 - 0.0% (92 Bytes)


History
2025-08-08 00:02:22 UTC (debuerreotype 0.16)

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

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=528995BFEDFBA7191D46839EF9BA0ADA31CBD89E 39B641343D8C104B2B146DC3F9C39DC0B9698544 F1F692238FBC1666E5A5CCD4199F9DFEF6FFBAFD

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.1.33

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=9db83bf4590375562bc1a10b353cccbcf9fcfc56c58b7c8fb814e6865bb928d1

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 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-ftp --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear $(test "$gnuArch" = 'riscv64-linux-gnu' && echo '--without-pcre-jit') --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

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

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

WORKDIR /var/www/html

2025-08-08 00:02:22 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-08 00:02:22 UTC (buildkit.dockerfile.v0)

STOPSIGNAL SIGQUIT

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

EXPOSE map[9000/tcp:{}]

2025-08-08 00:02:22 UTC (buildkit.dockerfile.v0)

CMD ["php-fpm"]

2025-10-22 02:42:12 UTC (buildkit.dockerfile.v0)

COPY ./data/php-fpm.ini /etc/supervisor.d/php-fpm.ini # buildkit

2025-10-22 02:42:12 UTC (buildkit.dockerfile.v0)

COPY ./data/supervisord.conf /etc/supervisord.conf # buildkit

2025-10-22 02:42:12 UTC (buildkit.dockerfile.v0)

COPY ./data/install-php-extensions /usr/local/bin/ # buildkit

2025-10-22 02:43:42 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends supervisor && mkdir -p /var/log/supervisor /etc/supervisor/conf.d && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit

2025-10-22 02:43:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c curl -o /tmp/composer-setup.php https://getcomposer.org/installer && php /tmp/composer-setup.php --install-dir=/tmp && mv /tmp/composer.phar /usr/bin/composer && chmod +x /usr/bin/composer && rm -rf /tmp/composer-setup.php # buildkit

2025-10-22 02:43:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c chmod uga+x /usr/local/bin/install-php-extensions # buildkit

2025-10-22 02:43:46 UTC (buildkit.dockerfile.v0)

ENV COMPOSER_HOME=/tmp/.composer

2025-10-22 02:43:46 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c usermod -u 1000 www-data && groupmod -g 1000 www-data # buildkit

2025-10-22 02:43:46 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["supervisord" "--nodaemon" "--configuration" "/etc/supervisord.conf"]

2025-10-22 02:43:46 UTC (buildkit.dockerfile.v0)

WORKDIR /www

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