Namespace
dunglas
Image / Tag
frankenphp:1.8.0-builder-php8.3-alpine
Content Digest
sha256:9ed92e53176969fa4b980b60d79b7ea3edf8a9f822b8ce5798d6d771fe844847
Details
Created

2025-07-14 04:55:15 UTC

Size

847 MB

Content Digest
Labels
  • org.opencontainers.image.created
    2025-07-14T04:46:55Z
  • org.opencontainers.image.description
    The modern PHP app server
  • org.opencontainers.image.licenses
    MIT
  • org.opencontainers.image.revision
    d5544bbca47547f4106906551b0e779538a894a8
  • 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
CGO_CFLAGS

-DFRANKENPHP_VERSION=v1.8.0 -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

CGO_CPPFLAGS

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

CGO_LDFLAGS

-lssl -lcrypto -lreadline -largon2 -lcurl -lonig -lz -Wl,-O1 -pie

GOTOOLCHAIN

local

GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

/usr/local/go/bin:/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.3.23.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

08be64700f703bca6ff1284bf1fdaffa37ae1b9734b6559f8350248e8960a6db

PHP_URL

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

PHP_VERSION

8.3.23

XDG_CONFIG_HOME

/config

XDG_DATA_HOME

/data


Layers

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

[#001] sha256:e77f186c38383ad6493c5451b40afbb713efd8fe058e03d39104cfcc39a2808e - 0.65% (5.54 MB)

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

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

[#004] sha256:c5cf3084333401ec9b2e2d8a1bae41511e754de73e7c769ea2d690f1a967dbb1 - 1.42% (12 MB)

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

[#006] sha256:7d88419b7c6c7a4bea817519973b735903d80caa2320f079aec83f76f142fdeb - 2.5% (21.2 MB)

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

[#008] sha256:bc70eec3faf0f44e03ddf55c8a0a5c535a95b33c69212e3701d3f3d90e2f7adb - 0.0% (19.7 KB)

[#009] sha256:00214eddc99df3133bd14e57a6ee3d1a611c6193da734919e971db07353022fd - 0.0% (19.7 KB)

[#010] sha256:7b6a82855d9cbd43ffe459f790cec3681341c789bb2690fef45fd54457f42999 - 0.0% (92 Bytes)

[#011] sha256:e7411153a53de4b40fdf64914fa2cbea4c243f107e62d5627f171e5cd3d16bf7 - 0.01% (84.7 KB)

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

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

[#014] sha256:1d20ee5f84d29f42ae15bd2e6ddd06f8ca21a23d4b99eb48f526023151a7937e - 0.0% (34.9 KB)

[#015] sha256:307f6141d5b09e0b7bf2461e65da88cce000c67b05e2bc67b904dd30a000cb76 - 8.66% (73.3 MB)

[#016] sha256:ff32b919700c9772e94455851a27440412e35691d9bbd5156b71cafa53846841 - 15.72% (133 MB)

[#017] sha256:7531de6b12396ffd1930f2e0a2d6a24becba894d309d2e6e5937cff615798f7c - 0.0% (151 Bytes)

[#018] sha256:9347e9fb7dd7a56451a750bd1f7a6b359122fe5236ddf978919a7b0575e6a256 - 0.16% (1.37 MB)

[#019] sha256:72fd143aa42f63a1823aca08a8549642b786bf283ad3fbe1b8aadf77113e664a - 0.0% (127 Bytes)

[#020] sha256:872b8e244b9f897b7ed42468126330d7c15a28b9bad5ca52b18908d37fbd3350 - 0.0% (4.03 KB)

[#021] sha256:46c8b869615cdc934f30f79b3fb6c06ae69df22cbb975482db7b4028ffb70b89 - 4.12% (34.8 MB)

[#022] sha256:8ba96430e82e7ff947bacc1b7cd3cc133de28af0d888f1a7b944f4aaef40f6df - 0.0% (150 Bytes)

[#023] sha256:3c51aa6c70a747047d04f8d8532840a283451f7468be67db850205ad039398c8 - 0.0% (35.3 KB)

[#024] sha256:e4973b8881835d2be3240e5564197aeaf35c5b2465ca1d2cbe42d67a996ff3c4 - 50.56% (428 MB)

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

[#026] sha256:422e641040031ec2dbe4d34b3c4daa38e311190acbd56ffe6f3989fb77234dc8 - 0.19% (1.59 MB)

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

[#028] sha256:6428b4cfba9f5b4368fc6671ea707efda96a87e769c0e23044cff0fac05dc770 - 15.58% (132 MB)

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


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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-07-03 18:33:44 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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.3.23

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=08be64700f703bca6ff1284bf1fdaffa37ae1b9734b6559f8350248e8960a6db

2025-07-03 18:33:44 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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./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 --enable-embed --enable-zts --disable-zend-signals ; 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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

CMD ["php" "-a"]

2025-07-14 04:47:01 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=386

2025-07-14 04:47:01 UTC (buildkit.dockerfile.v0)

WORKDIR /app

2025-07-14 04:47:02 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:47:02 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-14 04:46:57 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:47:03 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-14 04:47:03 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

ENV XDG_CONFIG_HOME=/config

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

ENV XDG_DATA_HOME=/data

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/tcp:{}]

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/udp:{}]

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

EXPOSE map[2019/tcp:{}]

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.title=FrankenPHP

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.licenses=MIT

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

ARG FRANKENPHP_VERSION=v1.8.0

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

ARG NO_COMPRESS=

2025-07-14 04:47:03 UTC (buildkit.dockerfile.v0)

SHELL [/bin/ash -eo pipefail -c]

2025-07-14 04:47:04 UTC (buildkit.dockerfile.v0)

COPY /usr/local/go /usr/local/go # buildkit

2025-07-14 04:47:04 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

2025-07-14 04:47:04 UTC (buildkit.dockerfile.v0)

ENV GOTOOLCHAIN=local

2025-07-14 04:47:11 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=386 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev bash brotli-dev coreutils curl-dev git gnu-libiconv-dev libsodium-dev cmake libstdc++ libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev upx # buildkit

2025-07-14 04:47:11 UTC (buildkit.dockerfile.v0)

WORKDIR /usr/local/src/watcher

2025-07-14 04:47:27 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=386 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c if [ -f /run/secrets/github-token ] && [ -s /run/secrets/github-token ]; then curl -s -H "Authorization: Bearer $(cat /run/secrets/github-token)" https://api.github.com/repos/e-dant/watcher/releases/latest; else curl -s https://api.github.com/repos/e-dant/watcher/releases/latest; fi | grep tarball_url | awk '{ print $2 }' | sed 's/,$//' | sed 's/"//g' | xargs curl -L | tar xz --strip-components 1 && cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build && cmake --install build # buildkit

2025-07-14 04:47:27 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app

2025-07-14 04:46:57 UTC (buildkit.dockerfile.v0)

COPY go.mod go.sum ./ # buildkit

2025-07-14 04:47:32 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=386 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c go mod download # buildkit

2025-07-14 04:47:32 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app/caddy

2025-07-14 04:47:32 UTC (buildkit.dockerfile.v0)

COPY caddy/go.mod caddy/go.sum ./ # buildkit

2025-07-14 04:47:44 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=386 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c go mod download # buildkit

2025-07-14 04:47:44 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app

2025-07-14 04:46:57 UTC (buildkit.dockerfile.v0)

COPY . ./ # buildkit

2025-07-14 04:46:57 UTC (buildkit.dockerfile.v0)

ENV CGO_CFLAGS=-DFRANKENPHP_VERSION=v1.8.0 -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2025-07-14 04:46:57 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:46:57 UTC (buildkit.dockerfile.v0)

ENV CGO_LDFLAGS=-lssl -lcrypto -lreadline -largon2 -lcurl -lonig -lz -Wl,-O1 -pie

2025-07-14 04:47:52 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app/caddy/frankenphp

2025-07-14 04:55:15 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=386 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c GOBIN=/usr/local/bin go install -tags 'nobadger,nomysql,nopgx' -ldflags "-w -s -extldflags '-Wl,-z,stack-size=0x80000' -X 'github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP $FRANKENPHP_VERSION PHP $PHP_VERSION Caddy'" -buildvcs=true && setcap cap_net_bind_service=+ep /usr/local/bin/frankenphp && ([ -z "${NO_COMPRESS}" ] && upx --best /usr/local/bin/frankenphp || true) && frankenphp version && frankenphp build-info # buildkit

2025-07-14 04:55:15 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app

Details
Created

2025-07-14 04:59:48 UTC

Size

851 MB

Content Digest
Labels
  • org.opencontainers.image.created
    2025-07-14T04:52:21Z
  • org.opencontainers.image.description
    The modern PHP app server
  • org.opencontainers.image.licenses
    MIT
  • org.opencontainers.image.revision
    d5544bbca47547f4106906551b0e779538a894a8
  • 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
CGO_CFLAGS

-DFRANKENPHP_VERSION=v1.8.0 -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

CGO_CPPFLAGS

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

CGO_LDFLAGS

-lssl -lcrypto -lreadline -largon2 -lcurl -lonig -lz -Wl,-O1 -pie

GOTOOLCHAIN

local

GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

/usr/local/go/bin:/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.3.23.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

08be64700f703bca6ff1284bf1fdaffa37ae1b9734b6559f8350248e8960a6db

PHP_URL

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

PHP_VERSION

8.3.23

XDG_CONFIG_HOME

/config

XDG_DATA_HOME

/data


Layers

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

[#001] sha256:76603f02f66360c111cf5a9069b11e27ac5ddb10ca19564d12d227af8782c3bc - 0.67% (5.67 MB)

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

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

[#004] sha256:9ecfc6ea76a97c05ad4cd17e1db07487f8dd09ea17f9f3367affc71aacc6c364 - 1.41% (12 MB)

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

[#006] sha256:ea63ca18573792e11bf8cb7fc2c2d4eee55c75b9daaa3421d53f0929c0d52d6c - 2.44% (20.7 MB)

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

[#008] sha256:3fb0a85821a21ea11183a72cdad19d48e3e9bc224354bb6413f7f3e8ed175177 - 0.0% (19.7 KB)

[#009] sha256:f537c4c0e6eed0dc65f84e5a548f4719ce469f635726ea788c21ebc509fe5a8b - 0.0% (19.7 KB)

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

[#011] sha256:80116b29756a6a47e3ed5817b0bbe0ed6abbd33a3c6412c0e716000b4b2d75a3 - 0.01% (82.3 KB)

[#012] sha256:88d5caf69992dacf097d00a57806bea95aff8f77c297b32a36b53bb59abcc96e - 0.0% (468 Bytes)

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

[#014] sha256:c08805e2972de2085c2e05027ddf8120db837c67fc9c56add702741edcf1a1cb - 0.0% (34.9 KB)

[#015] sha256:1b059b12282383c36821d7e21ac7696d4bee99fc68687f0f65c382b6bdb70a6c - 8.86% (75.3 MB)

[#016] sha256:16065ab7e85e5f93a8e86b47c55100469ff29e025017a4a836a9b3e5b09ce3e2 - 15.11% (129 MB)

[#017] sha256:acb53ffc1a4dab1f142150986421ea083f46d67dacc3cc5d33428a3351be3ef1 - 0.0% (153 Bytes)

[#018] sha256:c070d00f7f70055f6942b4b2d63ac6204caa15b04ade7fb5fca6488e784a78d0 - 0.15% (1.32 MB)

[#019] sha256:d2751729afb19697a3de1a00a1df9b4830d872f51979784ef867e533384b08b5 - 0.0% (128 Bytes)

[#020] sha256:94555f7a788104e333f3873a80c4f89d8c5db4969fd49bcd838602b3c5d270cc - 0.0% (4.03 KB)

[#021] sha256:963ea2fca671bf169ee507c996ade4e7a04ecca3cb840e6024e2a3644294762b - 4.1% (34.8 MB)

[#022] sha256:b2eb37fbc2a60386191504eff46fa61051a1b3361549622925e599872332603c - 0.0% (149 Bytes)

[#023] sha256:1ee33d22c747016887f681ed9db9086ebae6d780374d414c989ee4699e735146 - 0.0% (35.3 KB)

[#024] sha256:a068971cdf3e041679d2990e9171e54b9e3d66aaf7ec98ed26236f678b608c7f - 50.31% (428 MB)

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

[#026] sha256:7445e700cd1d8f4e0ea72415542ec524035c06ed02802ed0b3408ebebe5a6ebb - 0.19% (1.59 MB)

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

[#028] sha256:8a597dbdd4f9bae5e4c4ee9b201158a20d6866ed4760051d42ba9eced45d9fd4 - 16.31% (139 MB)

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


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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-07-03 18:33:44 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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.3.23

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=08be64700f703bca6ff1284bf1fdaffa37ae1b9734b6559f8350248e8960a6db

2025-07-03 18:33:44 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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./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 --enable-embed --enable-zts --disable-zend-signals ; 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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

CMD ["php" "-a"]

2025-07-14 04:52:25 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=amd64

2025-07-14 04:52:25 UTC (buildkit.dockerfile.v0)

WORKDIR /app

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:52:26 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-14 04:52:23 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:52:26 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-14 04:52:26 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

ENV XDG_CONFIG_HOME=/config

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

ENV XDG_DATA_HOME=/data

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/tcp:{}]

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/udp:{}]

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[2019/tcp:{}]

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.title=FrankenPHP

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.licenses=MIT

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

ARG FRANKENPHP_VERSION=v1.8.0

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

ARG NO_COMPRESS=

2025-07-14 04:52:26 UTC (buildkit.dockerfile.v0)

SHELL [/bin/ash -eo pipefail -c]

2025-07-14 04:52:29 UTC (buildkit.dockerfile.v0)

COPY /usr/local/go /usr/local/go # buildkit

2025-07-14 04:52:29 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

2025-07-14 04:52:29 UTC (buildkit.dockerfile.v0)

ENV GOTOOLCHAIN=local

2025-07-14 04:52:38 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=amd64 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev bash brotli-dev coreutils curl-dev git gnu-libiconv-dev libsodium-dev cmake libstdc++ libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev upx # buildkit

2025-07-14 04:52:38 UTC (buildkit.dockerfile.v0)

WORKDIR /usr/local/src/watcher

2025-07-14 04:52:52 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=amd64 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c if [ -f /run/secrets/github-token ] && [ -s /run/secrets/github-token ]; then curl -s -H "Authorization: Bearer $(cat /run/secrets/github-token)" https://api.github.com/repos/e-dant/watcher/releases/latest; else curl -s https://api.github.com/repos/e-dant/watcher/releases/latest; fi | grep tarball_url | awk '{ print $2 }' | sed 's/,$//' | sed 's/"//g' | xargs curl -L | tar xz --strip-components 1 && cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build && cmake --install build # buildkit

2025-07-14 04:52:52 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app

2025-07-14 04:52:23 UTC (buildkit.dockerfile.v0)

COPY go.mod go.sum ./ # buildkit

2025-07-14 04:52:58 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=amd64 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c go mod download # buildkit

2025-07-14 04:52:58 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app/caddy

2025-07-14 04:52:58 UTC (buildkit.dockerfile.v0)

COPY caddy/go.mod caddy/go.sum ./ # buildkit

2025-07-14 04:53:09 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=amd64 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c go mod download # buildkit

2025-07-14 04:53:10 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app

2025-07-14 04:52:23 UTC (buildkit.dockerfile.v0)

COPY . ./ # buildkit

2025-07-14 04:52:23 UTC (buildkit.dockerfile.v0)

ENV CGO_CFLAGS=-DFRANKENPHP_VERSION=v1.8.0 -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2025-07-14 04:52:23 UTC (buildkit.dockerfile.v0)

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

2025-07-14 04:52:23 UTC (buildkit.dockerfile.v0)

ENV CGO_LDFLAGS=-lssl -lcrypto -lreadline -largon2 -lcurl -lonig -lz -Wl,-O1 -pie

2025-07-14 04:53:17 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app/caddy/frankenphp

2025-07-14 04:59:48 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=amd64 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c GOBIN=/usr/local/bin go install -tags 'nobadger,nomysql,nopgx' -ldflags "-w -s -extldflags '-Wl,-z,stack-size=0x80000' -X 'github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP $FRANKENPHP_VERSION PHP $PHP_VERSION Caddy'" -buildvcs=true && setcap cap_net_bind_service=+ep /usr/local/bin/frankenphp && ([ -z "${NO_COMPRESS}" ] && upx --best /usr/local/bin/frankenphp || true) && frankenphp version && frankenphp build-info # buildkit

2025-07-14 04:59:48 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app

Details
Created

2025-07-14 06:04:47 UTC

Size

810 MB

Content Digest
Labels
  • org.opencontainers.image.created
    2025-07-14T05:49:59Z
  • org.opencontainers.image.description
    The modern PHP app server
  • org.opencontainers.image.licenses
    MIT
  • org.opencontainers.image.revision
    d5544bbca47547f4106906551b0e779538a894a8
  • 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
CGO_CFLAGS

-DFRANKENPHP_VERSION=v1.8.0 -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

CGO_CPPFLAGS

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

CGO_LDFLAGS

-lssl -lcrypto -lreadline -largon2 -lcurl -lonig -lz -Wl,-O1 -pie

GOTOOLCHAIN

local

GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

/usr/local/go/bin:/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.3.23.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

08be64700f703bca6ff1284bf1fdaffa37ae1b9734b6559f8350248e8960a6db

PHP_URL

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

PHP_VERSION

8.3.23

XDG_CONFIG_HOME

/config

XDG_DATA_HOME

/data


Layers

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

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

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

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

[#004] sha256:c10b98e00e904012800430f69cf8aa74332ce1ebba99fec9635378d4af95147c - 1.48% (12 MB)

[#005] sha256:9a2f60ea7cbd06e3b78423de30e2481ff24a10dc4900a14d875723aad2768ad1 - 0.0% (495 Bytes)

[#006] sha256:0829ab1a530df82c1fd7472b96fa92b57ae815845757af6c0df992ac91b4993b - 2.54% (20.6 MB)

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

[#008] sha256:d51c15bc5874ff682e4663b6afb32416fd55ecc533d46dca7f77d1dbcf190805 - 0.0% (19.5 KB)

[#009] sha256:8517e81585eafa6ee65893180a63d12414f551676b8f90d67736e9418776d357 - 0.0% (19.5 KB)

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

[#011] sha256:488a2b43c5b6f876d4a9023a679b8ee0ca203969c70e082c982c65dd48e944ab - 0.01% (79 KB)

[#012] sha256:4d7f8ff06cefbd4538d8942ccf3b46d4e53ee19e0e6891aad85b7ff2ea319127 - 0.0% (467 Bytes)

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

[#014] sha256:193a94bbee1b867f883a3296316e19072a0a6d9880ffd36c5177fa7cc2ddd464 - 0.0% (34.9 KB)

[#015] sha256:b652c7df31d39430a383bb2813f3367851387e85741febbe7f99a222c7cbfe9e - 9.08% (73.6 MB)

[#016] sha256:23c47ca3e77b5bc46ccc0196464f0ac7189e9e9762753521cf5a1bb573b187a7 - 12.62% (102 MB)

[#017] sha256:4421d8a34cfa4d55fa0490d2f6159e46c3a5168894bd07919180fd7a19fc7558 - 0.0% (152 Bytes)

[#018] sha256:a7d698df02bf050c4f3e9ed7c1dcd1efb34097d1753cbaf2d7ae605885c9b488 - 0.15% (1.24 MB)

[#019] sha256:ac5cf37519dd09a70d2f4c502c0f1ae8458b9314d0d459f0ce9b17b69a6577cd - 0.0% (128 Bytes)

[#020] sha256:edb57576dfec2ec78ed93a1ed6a1cee6067323bf2dbabe4308feeb9d361777b6 - 0.0% (4.03 KB)

[#021] sha256:2ccd73d0a724d31130caa640d99428c04022521be3f207b10522246838b344b0 - 4.3% (34.8 MB)

[#022] sha256:1d0d9152e265f487091ce1bd45ffc9fed8d4ea57fc6ae8679e94ea761ab9e5ed - 0.0% (150 Bytes)

[#023] sha256:df2756984cadcb7f2f7082ceedd0e96dcfd2dc4682515e1c09b57da4c4a84c29 - 0.0% (35.3 KB)

[#024] sha256:8de4a201577c70d7e23b341884a309e5ce56738b26c55bed5b7a3cc48e2ecdd3 - 52.83% (428 MB)

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

[#026] sha256:1e9e82256ef89c3b372f4a2b5e39c6e0313f8f1224adb8f9f38bfa6170f599df - 0.2% (1.59 MB)

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

[#028] sha256:83b74852fc3dbf63c044faa431c0a7f77a2732dbc5a678a571fbcfd769a98ea6 - 16.01% (130 MB)

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


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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-07-03 18:33:44 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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.3.23

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=08be64700f703bca6ff1284bf1fdaffa37ae1b9734b6559f8350248e8960a6db

2025-07-03 18:33:44 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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./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 --enable-embed --enable-zts --disable-zend-signals ; 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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

CMD ["php" "-a"]

2025-07-14 05:50:09 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=arm

2025-07-14 05:50:09 UTC (buildkit.dockerfile.v0)

WORKDIR /app

2025-07-14 05:50:12 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:50:13 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-14 05:50:03 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:50:14 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-14 05:50:14 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

ENV XDG_CONFIG_HOME=/config

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

ENV XDG_DATA_HOME=/data

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/tcp:{}]

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/udp:{}]

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

EXPOSE map[2019/tcp:{}]

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.title=FrankenPHP

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.licenses=MIT

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

ARG FRANKENPHP_VERSION=v1.8.0

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

ARG NO_COMPRESS=

2025-07-14 05:50:14 UTC (buildkit.dockerfile.v0)

SHELL [/bin/ash -eo pipefail -c]

2025-07-14 05:50:11 UTC (buildkit.dockerfile.v0)

COPY /usr/local/go /usr/local/go # buildkit

2025-07-14 05:50:11 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

2025-07-14 05:50:11 UTC (buildkit.dockerfile.v0)

ENV GOTOOLCHAIN=local

2025-07-14 05:50:21 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=arm FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev bash brotli-dev coreutils curl-dev git gnu-libiconv-dev libsodium-dev cmake libstdc++ libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev upx # buildkit

2025-07-14 05:50:21 UTC (buildkit.dockerfile.v0)

WORKDIR /usr/local/src/watcher

2025-07-14 05:50:35 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=arm FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c if [ -f /run/secrets/github-token ] && [ -s /run/secrets/github-token ]; then curl -s -H "Authorization: Bearer $(cat /run/secrets/github-token)" https://api.github.com/repos/e-dant/watcher/releases/latest; else curl -s https://api.github.com/repos/e-dant/watcher/releases/latest; fi | grep tarball_url | awk '{ print $2 }' | sed 's/,$//' | sed 's/"//g' | xargs curl -L | tar xz --strip-components 1 && cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build && cmake --install build # buildkit

2025-07-14 05:50:36 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app

2025-07-14 05:50:03 UTC (buildkit.dockerfile.v0)

COPY go.mod go.sum ./ # buildkit

2025-07-14 05:50:41 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=arm FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c go mod download # buildkit

2025-07-14 05:50:41 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app/caddy

2025-07-14 05:50:41 UTC (buildkit.dockerfile.v0)

COPY caddy/go.mod caddy/go.sum ./ # buildkit

2025-07-14 05:50:55 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=arm FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c go mod download # buildkit

2025-07-14 05:50:56 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app

2025-07-14 05:50:03 UTC (buildkit.dockerfile.v0)

COPY . ./ # buildkit

2025-07-14 05:50:03 UTC (buildkit.dockerfile.v0)

ENV CGO_CFLAGS=-DFRANKENPHP_VERSION=v1.8.0 -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2025-07-14 05:50:03 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:50:03 UTC (buildkit.dockerfile.v0)

ENV CGO_LDFLAGS=-lssl -lcrypto -lreadline -largon2 -lcurl -lonig -lz -Wl,-O1 -pie

2025-07-14 05:51:01 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app/caddy/frankenphp

2025-07-14 06:04:47 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=arm FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c GOBIN=/usr/local/bin go install -tags 'nobadger,nomysql,nopgx' -ldflags "-w -s -extldflags '-Wl,-z,stack-size=0x80000' -X 'github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP $FRANKENPHP_VERSION PHP $PHP_VERSION Caddy'" -buildvcs=true && setcap cap_net_bind_service=+ep /usr/local/bin/frankenphp && ([ -z "${NO_COMPRESS}" ] && upx --best /usr/local/bin/frankenphp || true) && frankenphp version && frankenphp build-info # buildkit

2025-07-14 06:04:47 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app

Details
Created

2025-07-14 05:38:40 UTC

Size

836 MB

Content Digest
Labels
  • org.opencontainers.image.created
    2025-07-14T05:23:02Z
  • org.opencontainers.image.description
    The modern PHP app server
  • org.opencontainers.image.licenses
    MIT
  • org.opencontainers.image.revision
    d5544bbca47547f4106906551b0e779538a894a8
  • 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
CGO_CFLAGS

-DFRANKENPHP_VERSION=v1.8.0 -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

CGO_CPPFLAGS

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

CGO_LDFLAGS

-lssl -lcrypto -lreadline -largon2 -lcurl -lonig -lz -Wl,-O1 -pie

GOTOOLCHAIN

local

GPG_KEYS

1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

PATH

/usr/local/go/bin:/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.3.23.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

08be64700f703bca6ff1284bf1fdaffa37ae1b9734b6559f8350248e8960a6db

PHP_URL

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

PHP_VERSION

8.3.23

XDG_CONFIG_HOME

/config

XDG_DATA_HOME

/data


Layers

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

[#001] sha256:f73985aec8f2b878dbb559825b96bc42ecedc3f93d14e5f1b9a6ca2e1816299c - 0.71% (5.94 MB)

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

[#003] sha256:106cb39859ac9004e783043bb75563ecfc6db5970ab2b1965a10cfec3c797d10 - 0.0% (216 Bytes)

[#004] sha256:18c1dc6ad948ff6b6024c13aeb8e1504ab7c78c613d2c0c92070d4d25d125ea3 - 1.44% (12 MB)

[#005] sha256:02f819ea982f77ab1a8ba8076019600ba3f9145ff91f7458fb0dcf5614950956 - 0.0% (490 Bytes)

[#006] sha256:8935e5c4764135179e4d8026eed41501c8d39d81dbfa7afc4ab0f8bf6f2d88da - 2.47% (20.7 MB)

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

[#008] sha256:00273d1557f52c809887e8fcc2d62b143490b5ff90170afb4ed1ec923a451ab4 - 0.0% (19.5 KB)

[#009] sha256:e20afee03fdbd2243e7872083e29071ffe23bfad81e8efe2e6d210cf5c861a33 - 0.0% (19.5 KB)

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

[#011] sha256:a3b52f031ac7cd959240ec2adf95eb0b6765ba1ba579ab956897d675c098a263 - 0.01% (89.7 KB)

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

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

[#014] sha256:e6d467974b5427c941d22998434e0843cc1ee8eda1b895922836ff123afdf365 - 0.0% (34.9 KB)

[#015] sha256:aa47ead4d8e780d43f42c358c72f34c81dcdf04800a4b7cbd742e93f54a81e63 - 8.58% (71.7 MB)

[#016] sha256:67ff3f40c4ee2fe8d6938557220378e8e837463191a0c218f145b6a17483c45d - 14.65% (122 MB)

[#017] sha256:efb3c612534863cbda165f1bccb36a0550149ede859ef6bb977e3a4f8d9ac2b0 - 0.0% (152 Bytes)

[#018] sha256:c823c02b303de2ddc55e1c0b3ad0718a74de8548fdae8b1fbe0d25c384f25bda - 0.16% (1.31 MB)

[#019] sha256:4b8ba6cd1f8dd47acc26371f2c26d76756f2b53d0610d7c7e9195b642587d3b2 - 0.0% (127 Bytes)

[#020] sha256:11bd6874f38a22964c2c9393c74566ae31bd245cc14ed98cc824405957beac0b - 0.0% (4.03 KB)

[#021] sha256:fd32bc8b69f3929f9e2a6c9066cd2628b54f53b1bbedf86e2d5018dae4893b55 - 4.17% (34.8 MB)

[#022] sha256:c470070ef8c746e0b3806c17ea29248f781121b8d96d3285c64be57976d77d87 - 0.0% (151 Bytes)

[#023] sha256:da839a356e19df072ed5d7542879704856f371f75fba510d5d43142fbbad2186 - 0.0% (35.3 KB)

[#024] sha256:8faa938216c005bc3bdec5188364ebaf0eb8e0f7c843ae8dcfacbe8460917610 - 51.19% (428 MB)

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

[#026] sha256:830ef394df8acd811b44f4ed3a71fafd4b68b6ef7b43dd301c46461d9748654f - 0.19% (1.59 MB)

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

[#028] sha256:86603cc6dccd3b1292126b537cefb08dcef6a61bcfc8906f95efcda09d47d513 - 15.95% (133 MB)

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


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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_INI_DIR=/usr/local/etc/php

2025-07-03 18:33:44 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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_LDFLAGS=-Wl,-O1 -pie

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_VERSION=8.3.23

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENV PHP_SHA256=08be64700f703bca6ff1284bf1fdaffa37ae1b9734b6559f8350248e8960a6db

2025-07-03 18:33:44 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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev coreutils curl-dev gnu-libiconv-dev libsodium-dev libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev ; rm -vf /usr/include/iconv.h; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./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 --enable-embed --enable-zts --disable-zend-signals ; 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-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

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

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["docker-php-entrypoint"]

2025-07-03 18:33:44 UTC (buildkit.dockerfile.v0)

CMD ["php" "-a"]

2025-07-14 05:23:10 UTC (buildkit.dockerfile.v0)

ARG TARGETARCH=arm64

2025-07-14 05:23:10 UTC (buildkit.dockerfile.v0)

WORKDIR /app

2025-07-14 05:23:14 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:23:15 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-14 05:23:05 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:23:15 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-14 05:23:15 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

ENV XDG_CONFIG_HOME=/config

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

ENV XDG_DATA_HOME=/data

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/tcp:{}]

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

EXPOSE map[443/udp:{}]

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

EXPOSE map[2019/tcp:{}]

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.title=FrankenPHP

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.licenses=MIT

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

ARG FRANKENPHP_VERSION=v1.8.0

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

ARG NO_COMPRESS=

2025-07-14 05:23:15 UTC (buildkit.dockerfile.v0)

SHELL [/bin/ash -eo pipefail -c]

2025-07-14 05:23:12 UTC (buildkit.dockerfile.v0)

COPY /usr/local/go /usr/local/go # buildkit

2025-07-14 05:23:12 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

2025-07-14 05:23:12 UTC (buildkit.dockerfile.v0)

ENV GOTOOLCHAIN=local

2025-07-14 05:23:25 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=arm64 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c apk add --no-cache --virtual .build-deps $PHPIZE_DEPS argon2-dev bash brotli-dev coreutils curl-dev git gnu-libiconv-dev libsodium-dev cmake libstdc++ libxml2-dev linux-headers oniguruma-dev openssl-dev readline-dev sqlite-dev upx # buildkit

2025-07-14 05:23:25 UTC (buildkit.dockerfile.v0)

WORKDIR /usr/local/src/watcher

2025-07-14 05:23:39 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=arm64 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c if [ -f /run/secrets/github-token ] && [ -s /run/secrets/github-token ]; then curl -s -H "Authorization: Bearer $(cat /run/secrets/github-token)" https://api.github.com/repos/e-dant/watcher/releases/latest; else curl -s https://api.github.com/repos/e-dant/watcher/releases/latest; fi | grep tarball_url | awk '{ print $2 }' | sed 's/,$//' | sed 's/"//g' | xargs curl -L | tar xz --strip-components 1 && cmake -S . -B build -DCMAKE_BUILD_TYPE=Release && cmake --build build && cmake --install build # buildkit

2025-07-14 05:23:39 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app

2025-07-14 05:23:05 UTC (buildkit.dockerfile.v0)

COPY go.mod go.sum ./ # buildkit

2025-07-14 05:23:44 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=arm64 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c go mod download # buildkit

2025-07-14 05:23:44 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app/caddy

2025-07-14 05:23:45 UTC (buildkit.dockerfile.v0)

COPY caddy/go.mod caddy/go.sum ./ # buildkit

2025-07-14 05:24:02 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=arm64 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c go mod download # buildkit

2025-07-14 05:24:02 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app

2025-07-14 05:23:05 UTC (buildkit.dockerfile.v0)

COPY . ./ # buildkit

2025-07-14 05:23:05 UTC (buildkit.dockerfile.v0)

ENV CGO_CFLAGS=-DFRANKENPHP_VERSION=v1.8.0 -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

2025-07-14 05:23:05 UTC (buildkit.dockerfile.v0)

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

2025-07-14 05:23:05 UTC (buildkit.dockerfile.v0)

ENV CGO_LDFLAGS=-lssl -lcrypto -lreadline -largon2 -lcurl -lonig -lz -Wl,-O1 -pie

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

WORKDIR /go/src/app/caddy/frankenphp

2025-07-14 05:38:40 UTC (buildkit.dockerfile.v0)

RUN |3 TARGETARCH=arm64 FRANKENPHP_VERSION=v1.8.0 NO_COMPRESS= /bin/ash -eo pipefail -c GOBIN=/usr/local/bin go install -tags 'nobadger,nomysql,nopgx' -ldflags "-w -s -extldflags '-Wl,-z,stack-size=0x80000' -X 'github.com/caddyserver/caddy/v2.CustomVersion=FrankenPHP $FRANKENPHP_VERSION PHP $PHP_VERSION Caddy'" -buildvcs=true && setcap cap_net_bind_service=+ep /usr/local/bin/frankenphp && ([ -z "${NO_COMPRESS}" ] && upx --best /usr/local/bin/frankenphp || true) && frankenphp version && frankenphp build-info # buildkit

2025-07-14 05:38:40 UTC (buildkit.dockerfile.v0)

WORKDIR /go/src/app

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