sha256:1d2f1edcba576518fc4111695028f5d4c7ba1f850e66b8f29db60f30d6b4a5b1
2026-06-12 08:44:22 UTC
263 MB
prod
GPG_KEYS1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPSautoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_ASC_URLhttps://www.php.net/distributions/php-8.3.31.tar.xz.asc
PHP_CFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_INI_DIR/usr/local/etc/php
PHP_LDFLAGS-Wl,-O1 -pie
PHP_SHA25666410cee07f4b2baeb0843140bb2a2b52ef930b5cf9b3d6e6d158b33aae8fa37
PHP_URLhttps://www.php.net/distributions/php-8.3.31.tar.xz
PHP_VERSION8.3.31
[#000] sha256:72c03230f1363a3fb61d2f98504cf168bad3fe22f511ad2005dc021515d7ce97 - 10.81% (28.4 MB)
[#001] sha256:a67c3e125e2c9ecfe019ccae67d5d4629382d89d4d6b3ed8c4d6d4fc9b4da939 - 0.0% (228 Bytes)
[#002] sha256:757145df32c522624455feffa7ad3b392743cb35b37bc2d0bde2312ee70d62bf - 42.77% (112 MB)
[#003] sha256:3c6a58d498e2a2f93ab829de666c538a9ed262cfaee69be4286fbb8e74cea1cf - 0.0% (223 Bytes)
[#004] sha256:81cc1021963a8aa3831055fd8e55d42f59606982d80171190eb30ed400d19013 - 4.63% (12.2 MB)
[#005] sha256:eaa3ac0c1dcfdba772112f2ee299e21236779f1eb1e5670ad5520a0c02a43a64 - 0.0% (486 Bytes)
[#006] sha256:68f7751c459a0db7c78126dad7e4f894d8c85a98982f8697d69834d8cb0ce2d6 - 4.32% (11.4 MB)
[#007] sha256:e693ecca46eee003b85cf3090341358f8261b0899363841beb3a37ad22c30de1 - 0.0% (2.39 KB)
[#008] sha256:b2e86bb0483064baf7c8a58b8a0ca56afefba269a56d9544ebc3b85714e66df9 - 0.0% (250 Bytes)
[#009] sha256:2e13b17ca427f2884a21a9c370ac4c436b3418e7aeda3188421c75f61efd0d49 - 0.0% (245 Bytes)
[#010] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#011] sha256:2430aa48db369784c5a0ddc0700b90ef5fe18c5c1e3333247de8ef7cd6f55010 - 0.0% (9.04 KB)
[#012] sha256:dd6d75dda53f96637ad47b583bdfafe34800da3a813ce25b5e601addff46031f - 23.71% (62.3 MB)
[#013] sha256:bd63a13dc5f73be8c7223f764b6f89bda7f30af47129c93a8160a3532be7c45e - 0.63% (1.66 MB)
[#014] sha256:c84f8691feefe1d9055f150c97329e01ab6bdbccb809b7f33690d85c30cb5323 - 0.74% (1.93 MB)
[#015] sha256:24429fac8a4562adb252104bac2dc78b456373a1b704f110975f2b4f1a93815e - 0.3% (804 KB)
[#016] sha256:95bffb5ea6e7b5412a227f2b67826fd0d882a121333b3ab84c2dec159329c8af - 0.0% (702 Bytes)
[#017] sha256:552356bfe11eb025b019d2048d6e3472848051abcd390fef8cc262f3d42c7de7 - 0.0% (680 Bytes)
[#018] sha256:bdf30455f93cf709dcab44d8d23c96f65cb748667737d74767a0cea1adbbed84 - 0.0% (204 Bytes)
[#019] sha256:d9f83e2132e30982d011ba2f217d7abe9dc257240a2f50b30a75139f6ce380d5 - 0.0% (718 Bytes)
[#020] sha256:94882f14eef461b5bb7249e7548b955e66324a97b2c87b68dd9c5eb9dc16d86f - 0.0% (1.06 KB)
[#021] sha256:51d37027af6a38d9b541537a33f15f4a9d0b6aa3d89a015f76cc239ad9d57ab6 - 0.0% (1.06 KB)
[#022] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#023] sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 - 0.0% (32 Bytes)
[#024] sha256:4449fefbcc8673d6350e36eb678557177a445ac5f09268a3504e1b73028bda8b - 0.0% (336 Bytes)
[#025] sha256:f1f6213d0123b28ee8d50a9cfed4a74587267761c820773d17f480f3f644e497 - 0.02% (53 KB)
[#026] sha256:4d4eaaa4327ad37e89a35d86a7645272369fe383ce53df21724fdfc8f94e3b10 - 11.36% (29.9 MB)
[#027] sha256:c98568d648852020294e3974ce9f39d1d083997c642e722af898204e08d14d65 - 0.63% (1.66 MB)
[#028] sha256:a882b977edea5deab985394d297c602ffba3ca3f86f0ff1ba16531fb1ee5758c - 0.07% (201 KB)
[#029] sha256:559c8804d1922bb2c0bcac143c0e2c1268bba0e890535a02a511048568a55f6a - 0.0% (430 Bytes)
[#030] sha256:7742639a2c38fe8f8081b6bb0f00290431864f65feaad5d9881a7571b226aa02 - 0.0% (145 Bytes)
[#031] sha256:1cc2fc7b67236399df71987ff5c2d2227ec8a442397f2de06d685e1e8bb7eabb - 0.0% (485 Bytes)
# debian.sh --arch 'amd64' out/ 'trixie' '@1781049600'
2026-06-11 00:28:11 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit
2026-06-11 00:28:29 UTC (buildkit.dockerfile.v0)ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
2026-06-11 00:28:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit
2026-06-11 00:28:29 UTC (buildkit.dockerfile.v0)ENV PHP_INI_DIR=/usr/local/etc/php
2026-06-11 00:28:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; mkdir -p "$PHP_INI_DIR/conf.d"; [ ! -d /var/www/html ]; mkdir -p /var/www/html; chown www-data:www-data /var/www/html; chmod 1777 /var/www/html # buildkit
2026-06-11 00:28:29 UTC (buildkit.dockerfile.v0)ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-06-11 00:28:29 UTC (buildkit.dockerfile.v0)ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
2026-06-11 00:28:29 UTC (buildkit.dockerfile.v0)ENV PHP_LDFLAGS=-Wl,-O1 -pie
2026-06-11 00:28:29 UTC (buildkit.dockerfile.v0)ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA
2026-06-11 00:28:29 UTC (buildkit.dockerfile.v0)ENV PHP_VERSION=8.3.31
2026-06-11 00:28:29 UTC (buildkit.dockerfile.v0)ENV PHP_URL=https://www.php.net/distributions/php-8.3.31.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.3.31.tar.xz.asc
2026-06-11 00:28:29 UTC (buildkit.dockerfile.v0)ENV PHP_SHA256=66410cee07f4b2baeb0843140bb2a2b52ef930b5cf9b3d6e6d158b33aae8fa37
2026-06-11 00:28:37 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit
2026-06-11 00:28:37 UTC (buildkit.dockerfile.v0)COPY docker-php-source /usr/local/bin/ # buildkit
2026-06-11 00:31:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --disable-phpdbg --with-pear --with-libdir="lib/$debMultiarch" --disable-cgi --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit
2026-06-11 00:31:29 UTC (buildkit.dockerfile.v0)COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
2026-06-11 00:31:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable opcache # buildkit
2026-06-11 00:31:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
2026-06-11 00:31:29 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["docker-php-entrypoint"]
2026-06-11 00:31:29 UTC (buildkit.dockerfile.v0)WORKDIR /var/www/html
2026-06-11 00:31:29 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; cd "${PHP_INI_DIR%/php}"; cp -v php-fpm.conf.default php-fpm.conf; cp -v php-fpm.d/www.conf.default php-fpm.d/www.conf; grep -E '^listen = 127.0.0.1:9000' php-fpm.d/www.conf; sed -ri 's/^(listen = 127.0.0.1:9000)/;\1/' php-fpm.d/www.conf; grep -E '^;listen = 127.0.0.1:9000' php-fpm.d/www.conf; { echo '[global]'; echo 'error_log = /proc/self/fd/2'; echo; echo '; https://github.com/docker-library/php/pull/725#issuecomment-443540114'; echo 'log_limit = 8192'; echo; echo '[www]'; echo '; php-fpm closes STDOUT on startup, so sending logs to /proc/self/fd/1 does not work.'; echo '; https://bugs.php.net/bug.php?id=73886'; echo 'access.log = /proc/self/fd/2'; echo; echo 'clear_env = no'; echo; echo '; Ensure worker stdout and stderr are sent to the main error log.'; echo 'catch_workers_output = yes'; echo 'decorate_workers_output = no'; echo; echo '; default listen address for easy override in later php-fpm.d/*.conf files'; echo 'listen = 9000'; } | tee php-fpm.d/docker.conf; { echo '[global]'; echo 'daemonize = no'; echo; echo '; the [www] ini section below is for backwards compatibility and will be removed in 8.6+'; echo '[www]'; } | tee php-fpm.d/zz-docker.conf; mkdir -p "$PHP_INI_DIR/conf.d"; { echo '; https://github.com/docker-library/php/issues/878#issuecomment-938595965'; echo 'fastcgi.logging = Off'; } > "$PHP_INI_DIR/conf.d/docker-fpm.ini" # buildkit
2026-06-11 00:31:29 UTC (buildkit.dockerfile.v0)STOPSIGNAL SIGQUIT
2026-06-11 00:31:29 UTC (buildkit.dockerfile.v0)EXPOSE map[9000/tcp:{}]
2026-06-11 00:31:29 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
2026-06-12 07:59:55 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c apt-get update && apt-get install -y git curl zip unzip libpng-dev libjpeg-dev libfreetype6-dev libonig-dev libxml2-dev libzip-dev libicu-dev libpq-dev gosu && rm -rf /var/lib/apt/lists/* # buildkit
2026-06-12 08:01:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install -j$(nproc) pdo_pgsql pgsql mbstring exif pcntl bcmath gd zip intl opcache sockets # buildkit
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c pecl install redis-6.0.2 && pecl install apcu-5.1.23 && docker-php-ext-enable redis apcu # buildkit
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)COPY /usr/bin/composer /usr/bin/composer # buildkit
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)COPY docker/php/php.ini /usr/local/etc/php/php.ini # buildkit
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)COPY docker/php/www.conf /usr/local/etc/php-fpm.d/www.conf # buildkit
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c rm -f /usr/local/etc/php-fpm.d/zz-docker.conf # buildkit
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)COPY docker/php/entrypoint.sh /usr/local/bin/entrypoint.sh # buildkit
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)COPY docker/php/entrypoint-app.sh /usr/local/bin/entrypoint-app.sh # buildkit
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c chmod +x /usr/local/bin/entrypoint.sh /usr/local/bin/entrypoint-app.sh # buildkit
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)WORKDIR /var/www
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)EXPOSE [9000/tcp]
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)WORKDIR /var/www
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)ENV APP_ENV=prod
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)COPY docker/php/php-prod.ini /usr/local/etc/php/conf.d/zz-prod.ini # buildkit
2026-06-12 08:02:12 UTC (buildkit.dockerfile.v0)COPY composer.json composer.lock symfony.lock ./ # buildkit
2026-06-12 08:02:18 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c composer config --no-plugins allow-plugins.captainhook/hook-installer false && composer config --no-plugins allow-plugins.netgen/git-hooks false && composer install --no-dev --no-interaction --no-scripts --no-autoloader # buildkit
2026-06-12 08:44:19 UTC (buildkit.dockerfile.v0)COPY . /var/www # buildkit
2026-06-12 08:44:21 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c composer dump-autoload --no-dev --classmap-authoritative --no-scripts && composer config --no-plugins allow-plugins.captainhook/hook-installer true && composer config --no-plugins allow-plugins.netgen/git-hooks true # buildkit
2026-06-12 08:44:21 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c cp -r /var/www/public /var/www/public.dist # buildkit
2026-06-12 08:44:22 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c touch /var/www/.env # buildkit
2026-06-12 08:44:22 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c mkdir -p var/cache var/log && chown -R www-data:www-data public var/cache var/log && chmod -R 775 var/cache var/log # buildkit
2026-06-12 08:44:22 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
2026-06-12 08:44:22 UTC (buildkit.dockerfile.v0)CMD ["php-fpm"]
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.