kreo-staging (4c1054b)

Published 2026-10-19 03:21:33 +00:00 by kreo-one

Installation

docker pull git.kreo.lat/kreo-one/kreo-staging:4c1054b
sha256:2f4e09ef4d826baea58c5b5a4cb54a663758299d689f5aa523e71f7965db9a58

About this package

The modern PHP app server

Image Layers

ADD alpine-minirootfs-3.24.2-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ENV PHPIZE_DEPS=autoconf dpkg-dev dpkg file g++ gcc libc-dev make pkgconf re2c
RUN /bin/sh -c apk add --no-cache ca-certificates curl openssl tar xz # buildkit
RUN /bin/sh -c set -eux; adduser -u 82 -D -S -G www-data www-data # buildkit
ENV PHP_INI_DIR=/usr/local/etc/php
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
ENV PHP_CFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ENV PHP_CPPFLAGS=-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
ENV PHP_LDFLAGS=-Wl,-O1 -pie
ENV GPG_KEYS=1198C0117593497A5EC5C199286AF1F9897469DC 49D9AF6BC72A80D6691719C8AA23F5BE9C7097D4 D95C03BC702BE9515344AE3374E44BC9067701A5
ENV PHP_VERSION=8.5.11
ENV PHP_URL=https://www.php.net/distributions/php-8.5.11.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.5.11.tar.xz.asc
ENV PHP_SHA256=d9be75c08e8c316f4c8f4194d8fbe1750a15f6a6d9d4e3fe72082abeeb800360
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; 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"; apk del --no-network .fetch-deps # buildkit
COPY docker-php-source /usr/local/bin/ # buildkit
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)"; case "$gnuArch" in 'i686-linux-'*) export CFLAGS="$CFLAGS -msse2 -mfpmath=sse" CPPFLAGS="$CPPFLAGS -msse2 -mfpmath=sse" ; ;; esac; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv=/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
COPY docker-php-ext-* docker-php-entrypoint /usr/local/bin/ # buildkit
RUN /bin/sh -c docker-php-ext-enable sodium # buildkit
ENTRYPOINT ["docker-php-entrypoint"]
CMD ["php" "-a"]
ARG TARGETARCH=amd64
WORKDIR /app
RUN |1 TARGETARCH=amd64 /bin/sh -c apk add --no-cache ca-certificates libcap mailcap # buildkit
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 # buildkit
COPY caddy/frankenphp/Caddyfile /etc/caddy/Caddyfile # buildkit
COPY package/content/index.php /app/public/index.php # buildkit
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
CMD ["--config" "/etc/frankenphp/Caddyfile" "--adapter" "caddyfile"]
HEALTHCHECK {Test:[CMD-SHELL curl -f http://localhost:2019/metrics || exit 1] Interval:0s Timeout:0s StartPeriod:0s StartInterval:0s Retries:0}
ENV XDG_CONFIG_HOME=/config
ENV XDG_DATA_HOME=/data
EXPOSE [80/tcp]
EXPOSE [443/tcp]
EXPOSE [443/udp]
EXPOSE [2019/tcp]
LABEL org.opencontainers.image.title=FrankenPHP
LABEL org.opencontainers.image.description=The modern PHP app server
LABEL org.opencontainers.image.url=https://frankenphp.dev
LABEL org.opencontainers.image.source=https://github.com/php/frankenphp
LABEL org.opencontainers.image.licenses=MIT
LABEL org.opencontainers.image.vendor=Kévin Dunglas
ENV GODEBUG=cgocheck=0
COPY /usr/local/lib/libwatcher* /usr/local/lib/ # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c apk add --no-cache libstdc++ && ldconfig /usr/local/lib # buildkit
COPY /usr/local/bin/frankenphp /usr/local/bin/frankenphp # buildkit
RUN |1 TARGETARCH=amd64 /bin/sh -c setcap cap_net_bind_service=+ep /usr/local/bin/frankenphp && frankenphp version && frankenphp build-info # buildkit
/bin/sh -c install-php-extensions pdo_pgsql pgsql redis pcntl bcmath intl opcache zip gd exif
WORKDIR /app
ARG GIT_SHA=unknown
ENV GIT_SHA=4c1054b
COPY dir:cdc75fa6152425c37da289002f11e534ac800bf9088ac738c04130aa78fc6c0e in ./vendor
/bin/sh -c echo "cache-bust-view-property-fix-207"
COPY dir:c5e36d492202a9c3664bb17f8990bd4650479b3c11dcb6345a8a0d17b8a0bc94 in .
COPY dir:6b4200b7b21306f72e1791f11f2f28627c29fe4990a4bda873133f873ebb1541 in ./public/build
COPY dir:8c7e25bfa031d5c77efa37f1789ad39f7a80cea2907fba4112d153f9e4d470ed in ./public/css
COPY file:130037537980399c6e734a476e7edc544728b6db9904a37165d9885eaaf837f0 in ./public/sw.js
/bin/sh -c echo "opcache.enable=1" >> /usr/local/etc/php/conf.d/opcache.ini && echo "opcache.memory_consumption=256" >> /usr/local/etc/php/conf.d/opcache.ini && echo "opcache.validate_timestamps=0" >> /usr/local/etc/php/conf.d/opcache.ini && echo "opcache.interned_strings_buffer=16" >> /usr/local/etc/php/conf.d/opcache.ini && echo "opcache.max_accelerated_files=20000" >> /usr/local/etc/php/conf.d/opcache.ini && echo "opcache.fast_shutdown=1" >> /usr/local/etc/php/conf.d/opcache.ini
/bin/sh -c printf '#!/bin/sh\nset -e\nrm -f /app/bootstrap/cache/*.php\nphp -d opcache.preload="" artisan optimize:clear --no-ansi --no-interaction 2>/dev/null || true\nphp artisan package:discover --ansi --no-interaction 2>/dev/null || true\nexec docker-php-entrypoint "$@"\n' > /usr/local/bin/kreo-entrypoint && chmod +x /usr/local/bin/kreo-entrypoint
ENTRYPOINT ["kreo-entrypoint"]
/bin/sh -c adduser -D -u 1000 www && mkdir -p /app/storage/framework/views && mkdir -p /app/storage/framework/cache && mkdir -p /app/storage/framework/testing && mkdir -p /app/storage/framework/sessions && mkdir -p /app/storage/logs && mkdir -p /app/bootstrap/cache && chmod -R a+r /app/plugins && cp vendor/laravel/octane/src/Commands/stubs/frankenphp-worker.php public/frankenphp-worker.php && chmod 644 public/frankenphp-worker.php && chown -R www:www /app/storage /app/bootstrap/cache && chmod -R 775 /app/storage /app/bootstrap/cache
ENV OCTANE_SERVER=frankenphp
ENV PORT=8080
ENV OCTANE_WORKERS=2
EXPOSE 8080
HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost:8080/health || tr '\\0' ' ' < /proc/1/cmdline 2>/dev/null | grep -q \"artisan\" || exit 1"] "30s" "10s" "2m0s" "0s" '\x03'}
/bin/sh -c chmod +x /app/scripts/startup.sh
USER www
CMD ["/app/scripts/startup.sh"]

Labels

Key Value
org.opencontainers.image.created 2026-10-04T09:20:17Z
org.opencontainers.image.description The modern PHP app server
org.opencontainers.image.licenses MIT
org.opencontainers.image.revision 233f793654acf53be41385a4a29ac5e126cf6701
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.13.0
Details
Container
2026-10-19 03:21:33 +00:00
1
OCI / Docker
linux/amd64
MIT
288 MiB
Versions (7) View all
3f0ca59 2026-10-21
5f1ac99 2026-10-21
03c1daa 2026-10-20
4c1054b 2026-10-19
7f31ae4 2026-10-17