Namespace
dunglas
Image / Tag
frankenphp:1.8.0-php8.2.28-alpine
Content Digest
sha256:de47b82526512e3079fc28739c42840f84cb2bf956e8b5e80cd5fb34747f2ac3
Details
Created

2025-07-01 13:50:50 UTC

Size

69.2 MB

Content Digest
Labels
  • org.opencontainers.image.created
    2025-07-01T13:44:20Z
  • org.opencontainers.image.description
    The modern PHP app server
  • org.opencontainers.image.licenses
    MIT
  • org.opencontainers.image.revision
    6be261169a6f43ebcf048273331d7f0f49a08f1b
  • org.opencontainers.image.source
    https://github.com/php/frankenphp
  • org.opencontainers.image.title
    FrankenPHP
  • org.opencontainers.image.url
    https://frankenphp.dev
  • org.opencontainers.image.vendor
    Kévin Dunglas
  • org.opencontainers.image.version
    v1.8.0

Environment
GODEBUG

cgocheck=0

GPG_KEYS

39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.2.28.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

af8c9153153a7f489153b7a74f2f29a5ee36f5cb2c6c6929c98411a577e89c91

PHP_URL

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

PHP_VERSION

8.2.28

XDG_CONFIG_HOME

/config

XDG_DATA_HOME

/data


Layers

[#000] sha256:c787620501b746b3aa9ec021f3ddb0b707572b5c68e33d73be392b9c078a4993 - 4.98% (3.45 MB)

[#001] sha256:e25333c2c1152f42c8c05cfba817f9e70e1edaaa9a459eeb1fdd41803310eb1a - 4.86% (3.36 MB)

[#002] sha256:857e3270d300930491c4530c64087e8d64deb5be9721d2002026b086385ff6e2 - 0.0% (935 Bytes)

[#003] sha256:165241a4985f1bc7d5558de38efcfc0cc0693e72867c298ae073c77d03658143 - 0.0% (217 Bytes)

[#004] sha256:d68529d0a9a6edc87b3435601accfb9da89328fadac83ede96f4e14726b6c32c - 16.76% (11.6 MB)

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

[#006] sha256:53b4a5170ed74b6dc4ad56e099488f27fa6222ce8a069a3844e6a145e19aaabc - 30.03% (20.8 MB)

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

[#008] sha256:b5591b5c2e9d5bf0d368d7632dc8a149b7061fffff874a50eadbaead13cf3eb8 - 0.03% (19.7 KB)

[#009] sha256:2857c0d3323aa85db8db54e0bc29683ae948aaebc789047a9cf6d654c10cc14d - 0.03% (19.7 KB)

[#010] sha256:6f90ab2ce8b692898458818355a87720808eb553d87d9e3bd348db319a338916 - 0.0% (93 Bytes)

[#011] sha256:cf101e0da47d53a22bf1d09111b2195b04412b53a79f4bfaf6db07ddf94421be - 0.12% (84.7 KB)

[#012] sha256:ba4dbb045b250f1834d6647519800ecd9e98ef942e8fe6c0ce9e4cd490952d36 - 0.0% (470 Bytes)

[#013] sha256:7917a4214b9f3541ee6230d2f270f23a5897247b1f974547f96af4bea27e1b42 - 0.0% (950 Bytes)

[#014] sha256:569b9f90d74df0a655328e336235530168a260765598cf7d496cc00b92dd8478 - 0.05% (34.8 KB)

[#015] sha256:d849611d9ee8849706469b213d181e73f91f7a926a77bc758b347060b5aba75e - 0.25% (179 KB)

[#016] sha256:1e61c81342c72a64e881490c57575e9177abc2e49f39d0779dacd2598143a8d3 - 1.5% (1.04 MB)

[#017] sha256:6ba6acd503e42ffc01fc6c933682d096355b82c9dd78cc7f97cc31344ff02a2d - 20.69% (14.3 MB)

[#018] sha256:9a3ce42ab0bca5bd51a850e0c675c14be1028a0e45fa3f91f2051f6784199d78 - 20.69% (14.3 MB)


History
2025-05-30 16:20:41 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.22.0-x86.tar.gz / # buildkit

2025-05-30 16:20:41 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-06-25 09:56:45 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-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.2.28

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=af8c9153153a7f489153b7a74f2f29a5ee36f5cb2c6c6929c98411a577e89c91

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then 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"; fi; apk del --no-network .fetch-deps # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev patch patchutils readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; curl -fL 'https://github.com/php/php-src/commit/b3c8afe272a6919248986c703c2e1defc73ff707.patch?full_index=1' -o 18743.patch; echo 'b334f73434c9732a4b27a42eb5d417e10df842e854c02a3e753b2479f8978bf5 *18743.patch' | sha256sum -c -; filterdiff -x '*/NEWS' 18743.patch | patch -p1; rm 18743.patch; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./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=/usr --with-openssl --with-readline --with-zlib --enable-phpdbg --enable-phpdbg-readline --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --enable-embed --enable-zts --disable-zend-signals --enable-zend-max-execution-timers ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

CMD ["php" "-a"]

2025-07-01 13:44:27 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=386

2025-07-01 13:44:27 UTC (buildkit.dockerfile.v0)

WORKDIR /app

2025-07-01 13:44:28 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=386 /bin/sh -c apk add --no-cache ca-certificates libcap mailcap # buildkit

2025-07-01 13:44:28 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=386 /bin/sh -c set -eux; mkdir -p /app/public /config/caddy /data/caddy /etc/caddy /etc/frankenphp; sed -i 's/php/frankenphp run/g' /usr/local/bin/docker-php-entrypoint; echo '<?php phpinfo();' > /app/public/index.php # buildkit

2025-07-01 13:44:23 UTC (buildkit.dockerfile.v0)

COPY caddy/frankenphp/Caddyfile /etc/caddy/Caddyfile # buildkit

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=386 /bin/sh -c ln /etc/caddy/Caddyfile /etc/frankenphp/Caddyfile && curl -sSLf -o /usr/local/bin/install-php-extensions https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions && chmod +x /usr/local/bin/install-php-extensions # buildkit

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

CMD ["--config" "/etc/frankenphp/Caddyfile" "--adapter" "caddyfile"]

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:2019/metrics || exit 1"] "0s" "0s" "0s" "0s" '\x00'}

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

ENV XDG_CONFIG_HOME=/config

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

ENV XDG_DATA_HOME=/data

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/tcp:{}]

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/udp:{}]

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

EXPOSE map[2019/tcp:{}]

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.title=FrankenPHP

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.description=The modern PHP app server

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.url=https://frankenphp.dev

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/php/frankenphp

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.licenses=MIT

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.vendor=Kévin Dunglas

2025-07-01 13:44:29 UTC (buildkit.dockerfile.v0)

ENV GODEBUG=cgocheck=0

2025-07-01 13:50:48 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/libwatcher* /usr/local/lib/ # buildkit

2025-07-01 13:50:49 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=386 /bin/sh -c apk add --no-cache libstdc++ && ldconfig /usr/local/lib # buildkit

2025-07-01 13:50:49 UTC (buildkit.dockerfile.v0)

COPY /usr/local/bin/frankenphp /usr/local/bin/frankenphp # buildkit

2025-07-01 13:50:50 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=386 /bin/sh -c setcap cap_net_bind_service=+ep /usr/local/bin/frankenphp && frankenphp version && frankenphp build-info # buildkit

Details
Created

2025-07-01 14:02:18 UTC

Size

70.7 MB

Content Digest
Labels
  • org.opencontainers.image.created
    2025-07-01T13:54:27Z
  • org.opencontainers.image.description
    The modern PHP app server
  • org.opencontainers.image.licenses
    MIT
  • org.opencontainers.image.revision
    6be261169a6f43ebcf048273331d7f0f49a08f1b
  • org.opencontainers.image.source
    https://github.com/php/frankenphp
  • org.opencontainers.image.title
    FrankenPHP
  • org.opencontainers.image.url
    https://frankenphp.dev
  • org.opencontainers.image.vendor
    Kévin Dunglas
  • org.opencontainers.image.version
    v1.8.0

Environment
GODEBUG

cgocheck=0

GPG_KEYS

39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.2.28.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

af8c9153153a7f489153b7a74f2f29a5ee36f5cb2c6c6929c98411a577e89c91

PHP_URL

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

PHP_VERSION

8.2.28

XDG_CONFIG_HOME

/config

XDG_DATA_HOME

/data


Layers

[#000] sha256:fe07684b16b82247c3539ed86a65ff37a76138ec25d380bd80c869a1a4c73236 - 5.12% (3.62 MB)

[#001] sha256:dc605d634ad64062a4e30ace047b123c9607cb67e9527b391a30df3d38fb4226 - 4.68% (3.31 MB)

[#002] sha256:c5b699d2fa8e2b38a4b630aa0491075e8d466027d83f1333b44a710f8df39ed1 - 0.0% (933 Bytes)

[#003] sha256:33ee462cf61a59905202f076616fdb2a5d624169b399c29bf58f70e47416a86b - 0.0% (221 Bytes)

[#004] sha256:06ded5caf8a2d7b5751c814694dc02bf17cb02ea67c2f46e05614f36a6a8067b - 16.41% (11.6 MB)

[#005] sha256:df547e550e4857fd7e7522d14b54a240332a31ad988cc677275efcab7829710e - 0.0% (484 Bytes)

[#006] sha256:db6ebef802c209c8d43bfa3b76e5c2f32064ffb957023ba7ce2f5b127b47f9fa - 28.74% (20.3 MB)

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

[#008] sha256:00a97d5c88e8299f58de1fcd9953052394e460884a8c77af312260ce80336ab4 - 0.03% (19.7 KB)

[#009] sha256:97d856ee89b6814e9ed560f81958b06c42b534aa7497af89933dc4cd4bf188f5 - 0.03% (19.7 KB)

[#010] sha256:b243c95d6076f9fe8fcb5390cdb04a75da528905511917d4220f5cf85aa423e1 - 0.0% (93 Bytes)

[#011] sha256:67c6f8ba43047a97c52a353e6a7e2bec0afe512d9036b70c4c197bce8fc487e7 - 0.11% (82.3 KB)

[#012] sha256:b7cc3971df4ffba445ee51c11c261592cb46d84ddc0b8c49d53991143ce057b9 - 0.0% (471 Bytes)

[#013] sha256:a40a86b938f91bb358dfe3935f9230839c9c3fba968e54c96cb4153c420b3dee - 0.0% (950 Bytes)

[#014] sha256:3ce7fc5e26e98cc250158c7564e9851998c688e21da30c1b59999f9e16d53c67 - 0.05% (34.8 KB)

[#015] sha256:587921b94144f92636e439d52f73f699eead54f35fc2083b2d2d280a6e7408f9 - 0.22% (158 KB)

[#016] sha256:825a260146b98be362917ee68ceab90f7b85ce2b17cdb1ddfac50d081c39f026 - 1.34% (974 KB)

[#017] sha256:7cbdf5ebb3d4d122eb9cd5bf9afc082a35d03776862db5e27be89e322e39ef83 - 21.64% (15.3 MB)

[#018] sha256:c625afae34751af1db3b4941431d722f1d0058a82d150666a9b55dcde1671b57 - 21.64% (15.3 MB)


History
2025-05-30 16:20:41 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.22.0-x86_64.tar.gz / # buildkit

2025-05-30 16:20:41 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-06-25 09:56:45 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-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.2.28

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=af8c9153153a7f489153b7a74f2f29a5ee36f5cb2c6c6929c98411a577e89c91

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then 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"; fi; apk del --no-network .fetch-deps # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev patch patchutils readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; curl -fL 'https://github.com/php/php-src/commit/b3c8afe272a6919248986c703c2e1defc73ff707.patch?full_index=1' -o 18743.patch; echo 'b334f73434c9732a4b27a42eb5d417e10df842e854c02a3e753b2479f8978bf5 *18743.patch' | sha256sum -c -; filterdiff -x '*/NEWS' 18743.patch | patch -p1; rm 18743.patch; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./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=/usr --with-openssl --with-readline --with-zlib --enable-phpdbg --enable-phpdbg-readline --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --enable-embed --enable-zts --disable-zend-signals --enable-zend-max-execution-timers ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

CMD ["php" "-a"]

2025-07-01 13:54:30 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=amd64

2025-07-01 13:54:30 UTC (buildkit.dockerfile.v0)

WORKDIR /app

2025-07-01 13:54:31 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=amd64 /bin/sh -c apk add --no-cache ca-certificates libcap mailcap # buildkit

2025-07-01 13:54:31 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=amd64 /bin/sh -c set -eux; mkdir -p /app/public /config/caddy /data/caddy /etc/caddy /etc/frankenphp; sed -i 's/php/frankenphp run/g' /usr/local/bin/docker-php-entrypoint; echo '<?php phpinfo();' > /app/public/index.php # buildkit

2025-07-01 13:54:28 UTC (buildkit.dockerfile.v0)

COPY caddy/frankenphp/Caddyfile /etc/caddy/Caddyfile # buildkit

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=amd64 /bin/sh -c ln /etc/caddy/Caddyfile /etc/frankenphp/Caddyfile && curl -sSLf -o /usr/local/bin/install-php-extensions https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions && chmod +x /usr/local/bin/install-php-extensions # buildkit

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

CMD ["--config" "/etc/frankenphp/Caddyfile" "--adapter" "caddyfile"]

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:2019/metrics || exit 1"] "0s" "0s" "0s" "0s" '\x00'}

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

ENV XDG_CONFIG_HOME=/config

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

ENV XDG_DATA_HOME=/data

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/tcp:{}]

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/udp:{}]

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

EXPOSE map[2019/tcp:{}]

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.title=FrankenPHP

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.description=The modern PHP app server

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.url=https://frankenphp.dev

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/php/frankenphp

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.licenses=MIT

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.vendor=Kévin Dunglas

2025-07-01 13:54:32 UTC (buildkit.dockerfile.v0)

ENV GODEBUG=cgocheck=0

2025-07-01 14:02:15 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/libwatcher* /usr/local/lib/ # buildkit

2025-07-01 14:02:17 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=amd64 /bin/sh -c apk add --no-cache libstdc++ && ldconfig /usr/local/lib # buildkit

2025-07-01 14:02:17 UTC (buildkit.dockerfile.v0)

COPY /usr/local/bin/frankenphp /usr/local/bin/frankenphp # buildkit

2025-07-01 14:02:18 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=amd64 /bin/sh -c setcap cap_net_bind_service=+ep /usr/local/bin/frankenphp && frankenphp version && frankenphp build-info # buildkit

Details
Created

2025-07-01 13:58:54 UTC

Size

64.7 MB

Content Digest
Labels
  • org.opencontainers.image.created
    2025-07-01T13:44:26Z
  • org.opencontainers.image.description
    The modern PHP app server
  • org.opencontainers.image.licenses
    MIT
  • org.opencontainers.image.revision
    6be261169a6f43ebcf048273331d7f0f49a08f1b
  • org.opencontainers.image.source
    https://github.com/php/frankenphp
  • org.opencontainers.image.title
    FrankenPHP
  • org.opencontainers.image.url
    https://frankenphp.dev
  • org.opencontainers.image.vendor
    Kévin Dunglas
  • org.opencontainers.image.version
    v1.8.0

Environment
GODEBUG

cgocheck=0

GPG_KEYS

39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.2.28.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

af8c9153153a7f489153b7a74f2f29a5ee36f5cb2c6c6929c98411a577e89c91

PHP_URL

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

PHP_VERSION

8.2.28

XDG_CONFIG_HOME

/config

XDG_DATA_HOME

/data


Layers

[#000] sha256:22e4d17029cf647ff505d5389be90006efc5ed4178aed9a6d798a2bf7a675fc9 - 4.75% (3.07 MB)

[#001] sha256:ec113fe1f048c8128d671c69cfadec1876ed37d14a445b7755326cbfa9acee36 - 4.79% (3.1 MB)

[#002] sha256:4d3d974efcf5fd7ed95cd66bd2537770b4f31b8d7af064ae6e9119868bac3309 - 0.0% (933 Bytes)

[#003] sha256:b29a62342af1e9fd2e1392885a9e1a9439cdee5d849c8f557fb8693b5650363b - 0.0% (220 Bytes)

[#004] sha256:b82fe7311faa4207700833f5c8e393b83ad562aa8f8c66acef2f89df09ac068b - 17.94% (11.6 MB)

[#005] sha256:b41196cc2eeca02797027fd2dec6c3ab53211848594e5aeaca206fd7aa1ccc6a - 0.0% (492 Bytes)

[#006] sha256:4bcac8a807e7a68efba2ae7613a7c3c7a358a9bcbfb586877ac99f9c92e5f74a - 27.01% (17.5 MB)

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

[#008] sha256:ca1ab7b5a36b39e841e3ec2cc95ad0ab4e1b2e18c671d9be43834f0b82cb0a0c - 0.03% (19.5 KB)

[#009] sha256:544225fd84eba19a6f8243e9bebd6c4cef40ebbd351eebc52de58312920e9a6b - 0.03% (19.5 KB)

[#010] sha256:10097b5cb8c3fb58170f1768e9e14e4614feb2c0c931ecf3fc9905cb5f683c6b - 0.0% (93 Bytes)

[#011] sha256:b13d254a7889ca281a04f6d3742045066a61b9694cf753b1f5b10de1efce86da - 0.12% (79 KB)

[#012] sha256:f1f6b9e12de07befded9677ad60b41d7515c63f802de656225390d8b06ac6370 - 0.0% (471 Bytes)

[#013] sha256:c84d9cf07905609737116144f9e41a9855f526dc30f55fc0ce32b5ef739f254c - 0.0% (948 Bytes)

[#014] sha256:58dc32f6e85915ee8b97734630af1ff16a7692ff1e2396a2a22d2e55a36b31c3 - 0.05% (34.8 KB)

[#015] sha256:cb7c0fcb94cf3c16161aa08a7c45399c6d8da04c7ce7edcdd0c55dd236fc3e05 - 0.2% (130 KB)

[#016] sha256:284709809dfdf5477d1dc9e08cd06e85653a822d718636c30bad2651b4bd4cfb - 1.31% (866 KB)

[#017] sha256:b32cde13ed24df031855c75ce987795eaa834e0a406615f8a82c00d817677ab8 - 21.88% (14.2 MB)

[#018] sha256:51a59b9e0636206ebad3639f7a103d09a57f8fb03f425d4470e7a4f70d6964ed - 21.88% (14.2 MB)


History
2025-05-30 16:20:41 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.22.0-armv7.tar.gz / # buildkit

2025-05-30 16:20:41 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-06-25 09:56:45 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-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.2.28

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=af8c9153153a7f489153b7a74f2f29a5ee36f5cb2c6c6929c98411a577e89c91

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then 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"; fi; apk del --no-network .fetch-deps # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev patch patchutils readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; curl -fL 'https://github.com/php/php-src/commit/b3c8afe272a6919248986c703c2e1defc73ff707.patch?full_index=1' -o 18743.patch; echo 'b334f73434c9732a4b27a42eb5d417e10df842e854c02a3e753b2479f8978bf5 *18743.patch' | sha256sum -c -; filterdiff -x '*/NEWS' 18743.patch | patch -p1; rm 18743.patch; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./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=/usr --with-openssl --with-readline --with-zlib --enable-phpdbg --enable-phpdbg-readline --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --enable-embed --enable-zts --disable-zend-signals --enable-zend-max-execution-timers ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

CMD ["php" "-a"]

2025-07-01 13:44:36 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=arm

2025-07-01 13:44:36 UTC (buildkit.dockerfile.v0)

WORKDIR /app

2025-07-01 13:44:39 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=arm /bin/sh -c apk add --no-cache ca-certificates libcap mailcap # buildkit

2025-07-01 13:44:40 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=arm /bin/sh -c set -eux; mkdir -p /app/public /config/caddy /data/caddy /etc/caddy /etc/frankenphp; sed -i 's/php/frankenphp run/g' /usr/local/bin/docker-php-entrypoint; echo '<?php phpinfo();' > /app/public/index.php # buildkit

2025-07-01 13:44:30 UTC (buildkit.dockerfile.v0)

COPY caddy/frankenphp/Caddyfile /etc/caddy/Caddyfile # buildkit

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=arm /bin/sh -c ln /etc/caddy/Caddyfile /etc/frankenphp/Caddyfile && curl -sSLf -o /usr/local/bin/install-php-extensions https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions && chmod +x /usr/local/bin/install-php-extensions # buildkit

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

CMD ["--config" "/etc/frankenphp/Caddyfile" "--adapter" "caddyfile"]

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:2019/metrics || exit 1"] "0s" "0s" "0s" "0s" '\x00'}

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

ENV XDG_CONFIG_HOME=/config

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

ENV XDG_DATA_HOME=/data

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/tcp:{}]

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/udp:{}]

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

EXPOSE map[2019/tcp:{}]

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.title=FrankenPHP

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.description=The modern PHP app server

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.url=https://frankenphp.dev

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/php/frankenphp

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.licenses=MIT

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.vendor=Kévin Dunglas

2025-07-01 13:44:41 UTC (buildkit.dockerfile.v0)

ENV GODEBUG=cgocheck=0

2025-07-01 13:58:50 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/libwatcher* /usr/local/lib/ # buildkit

2025-07-01 13:58:52 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=arm /bin/sh -c apk add --no-cache libstdc++ && ldconfig /usr/local/lib # buildkit

2025-07-01 13:58:53 UTC (buildkit.dockerfile.v0)

COPY /usr/local/bin/frankenphp /usr/local/bin/frankenphp # buildkit

2025-07-01 13:58:54 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=arm /bin/sh -c setcap cap_net_bind_service=+ep /usr/local/bin/frankenphp && frankenphp version && frankenphp build-info # buildkit

Details
Created

2025-07-01 14:10:28 UTC

Size

67.1 MB

Content Digest
Labels
  • org.opencontainers.image.created
    2025-07-01T13:46:32Z
  • org.opencontainers.image.description
    The modern PHP app server
  • org.opencontainers.image.licenses
    MIT
  • org.opencontainers.image.revision
    6be261169a6f43ebcf048273331d7f0f49a08f1b
  • org.opencontainers.image.source
    https://github.com/php/frankenphp
  • org.opencontainers.image.title
    FrankenPHP
  • org.opencontainers.image.url
    https://frankenphp.dev
  • org.opencontainers.image.vendor
    Kévin Dunglas
  • org.opencontainers.image.version
    v1.8.0

Environment
GODEBUG

cgocheck=0

GPG_KEYS

39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC

PATH

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

PHPIZE_DEPS

autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c

PHP_ASC_URL

https://www.php.net/distributions/php-8.2.28.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

af8c9153153a7f489153b7a74f2f29a5ee36f5cb2c6c6929c98411a577e89c91

PHP_URL

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

PHP_VERSION

8.2.28

XDG_CONFIG_HOME

/config

XDG_DATA_HOME

/data


Layers

[#000] sha256:d69d4d41cfe2ee680d6972795e2a1eb9e4dc4ec3b3c5e0797c9ab43bb3726fa7 - 5.88% (3.94 MB)

[#001] sha256:5d74afa414d93be74315fb2fbbededff31189950343736eb9412b26b4f530d1a - 4.93% (3.31 MB)

[#002] sha256:d91ea4522a211c5e50ab5b22083b52449e7ad38398a1f6e5dad24e4a62961906 - 0.0% (934 Bytes)

[#003] sha256:a8b695911010ae65b6cf4c4b5ac350b27932e3b4b29077f6094baa473db50fb5 - 0.0% (214 Bytes)

[#004] sha256:787ca327d61f936376c60cdebf4afeed133939247c75fb1d5739f32eefe66742 - 17.29% (11.6 MB)

[#005] sha256:07e1886d8eb2e018b831c7480452eed09500d22186a95e93acdbc2aa6ba84e7f - 0.0% (495 Bytes)

[#006] sha256:a6ca90ba18b0ba1f91df638de17ce7abd3a5c2007e9a7534e3cc2646a771d164 - 30.22% (20.3 MB)

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

[#008] sha256:5786a5ed6d6ce91d986694b272202b40a9c6b3a26e2aac9bc5ebf8a2008788a7 - 0.03% (19.5 KB)

[#009] sha256:85bb1eadf449e71346e142699d599f14c252f89cd9a132ad99ffed40a4f64017 - 0.03% (19.5 KB)

[#010] sha256:1d7c84397a2f0c21fb003532a252d830441318b4ba70c3907f36091bce7f2a5c - 0.0% (93 Bytes)

[#011] sha256:93014d7d30e2add3e7ef200c220a6b0e0850d861e1cbd279c2eb155b5720c0c7 - 0.13% (89.7 KB)

[#012] sha256:d1a100c9b7bb6fa8dd988cabf15da6d9798a373562bb0dcfd96699a2c405b6a5 - 0.0% (470 Bytes)

[#013] sha256:f9e2bc131c834b159d1a3f2cca3646de648904942323b40308e1c0d210994f08 - 0.0% (947 Bytes)

[#014] sha256:292a014593fdb290d077522006b4330c56cfd4511f7ed1b8926b3a68800730cb - 0.05% (34.8 KB)

[#015] sha256:d903c3b066ed5d79b26accb1a97ed1f9b2ab071e615cb3f971964d7e362615b5 - 0.22% (151 KB)

[#016] sha256:e960b89d39e13b0ea3b75f9d3c014629bebca8d0b3534ce9c97600746e8ceb33 - 1.47% (1010 KB)

[#017] sha256:f3e782e50fb6a2dbda77cce33c8c0321ca6354f1df964e4c9fe00c331797490b - 19.87% (13.3 MB)

[#018] sha256:3cb80c5afe71d3d44e15a438dfa59871f644f85e18fb4f84384cb8b2a2c6ac35 - 19.87% (13.3 MB)


History
2025-05-30 16:20:41 UTC (buildkit.dockerfile.v0)

ADD alpine-minirootfs-3.22.0-aarch64.tar.gz / # buildkit

2025-05-30 16:20:41 UTC (buildkit.dockerfile.v0)

CMD ["/bin/sh"]

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-06-25 09:56:45 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-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=39B641343D8C104B2B146DC3F9C39DC0B9698544 E60913E4DF209907D8E30D96659A97C9CF2A795A 1198C0117593497A5EC5C199286AF1F9897469DC

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.2.28

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=af8c9153153a7f489153b7a74f2f29a5ee36f5cb2c6c6929c98411a577e89c91

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .fetch-deps gnupg; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; if [ -n "$PHP_ASC_URL" ]; then 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"; fi; apk del --no-network .fetch-deps # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev patch patchutils readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; curl -fL 'https://github.com/php/php-src/commit/b3c8afe272a6919248986c703c2e1defc73ff707.patch?full_index=1' -o 18743.patch; echo 'b334f73434c9732a4b27a42eb5d417e10df842e854c02a3e753b2479f8978bf5 *18743.patch' | sha256sum -c -; filterdiff -x '*/NEWS' 18743.patch | patch -p1; rm 18743.patch; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./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=/usr --with-openssl --with-readline --with-zlib --enable-phpdbg --enable-phpdbg-readline --with-pear $(test "$gnuArch" = 'riscv64-linux-musl' && echo '--without-pcre-jit') --enable-embed --enable-zts --disable-zend-signals --enable-zend-max-execution-timers ; make -j "$(nproc)"; find -type f -name '*.a' -delete; make install; find /usr/local -type f -perm '/0111' -exec sh -euxc ' strip --strip-all "$@" || : ' -- '{}' + ; make clean; cp -v php.ini-* "$PHP_INI_DIR/"; cd /; docker-php-source delete; runDeps="$( scanelf --needed --nobanner --format '%n#p' --recursive /usr/local | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' )"; apk add --no-cache $runDeps; apk del --no-network .build-deps; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

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

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-06-25 09:56:45 UTC (buildkit.dockerfile.v0)

CMD ["php" "-a"]

2025-07-01 13:46:41 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=arm64

2025-07-01 13:46:41 UTC (buildkit.dockerfile.v0)

WORKDIR /app

2025-07-01 13:46:44 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=arm64 /bin/sh -c apk add --no-cache ca-certificates libcap mailcap # buildkit

2025-07-01 13:46:45 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=arm64 /bin/sh -c set -eux; mkdir -p /app/public /config/caddy /data/caddy /etc/caddy /etc/frankenphp; sed -i 's/php/frankenphp run/g' /usr/local/bin/docker-php-entrypoint; echo '<?php phpinfo();' > /app/public/index.php # buildkit

2025-07-01 13:46:35 UTC (buildkit.dockerfile.v0)

COPY caddy/frankenphp/Caddyfile /etc/caddy/Caddyfile # buildkit

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=arm64 /bin/sh -c ln /etc/caddy/Caddyfile /etc/frankenphp/Caddyfile && curl -sSLf -o /usr/local/bin/install-php-extensions https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions && chmod +x /usr/local/bin/install-php-extensions # buildkit

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

CMD ["--config" "/etc/frankenphp/Caddyfile" "--adapter" "caddyfile"]

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:2019/metrics || exit 1"] "0s" "0s" "0s" "0s" '\x00'}

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

ENV XDG_CONFIG_HOME=/config

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

ENV XDG_DATA_HOME=/data

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/tcp:{}]

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/udp:{}]

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

EXPOSE map[2019/tcp:{}]

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.title=FrankenPHP

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.description=The modern PHP app server

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.url=https://frankenphp.dev

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/php/frankenphp

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.licenses=MIT

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.vendor=Kévin Dunglas

2025-07-01 13:46:46 UTC (buildkit.dockerfile.v0)

ENV GODEBUG=cgocheck=0

2025-07-01 14:10:24 UTC (buildkit.dockerfile.v0)

COPY /usr/local/lib/libwatcher* /usr/local/lib/ # buildkit

2025-07-01 14:10:26 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=arm64 /bin/sh -c apk add --no-cache libstdc++ && ldconfig /usr/local/lib # buildkit

2025-07-01 14:10:27 UTC (buildkit.dockerfile.v0)

COPY /usr/local/bin/frankenphp /usr/local/bin/frankenphp # buildkit

2025-07-01 14:10:28 UTC (buildkit.dockerfile.v0)

RUN |1 TARGETARCH=arm64 /bin/sh -c setcap cap_net_bind_service=+ep /usr/local/bin/frankenphp && frankenphp version && frankenphp build-info # buildkit

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