sweloo (sha256:a87661d5e10bbbf02671792c4dc3e191bb9d4ef46071b035d48c442beb51de31)
Published 2026-06-26 13:07:42 +02:00 by Yoann
Installation
docker pull forge.yoannh.dev/yoannh/sweloo@sha256:a87661d5e10bbbf02671792c4dc3e191bb9d4ef46071b035d48c442beb51de31sha256:a87661d5e10bbbf02671792c4dc3e191bb9d4ef46071b035d48c442beb51de31About this package
The modern PHP app server
Image layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1782172800' |
| RUN /bin/sh -c set -eux; { echo 'Package: php*'; echo 'Pin: release *'; echo 'Pin-Priority: -1'; } > /etc/apt/preferences.d/no-debian-php # buildkit |
| ENV PHPIZE_DEPS=autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends $PHPIZE_DEPS ca-certificates curl xz-utils ; apt-get dist-clean # buildkit |
| 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.7 |
| ENV PHP_URL=https://www.php.net/distributions/php-8.5.7.tar.xz PHP_ASC_URL=https://www.php.net/distributions/php-8.5.7.tar.xz.asc |
| ENV PHP_SHA256=01ba2ed1c2658dacf91bebc8be6a4885f69b811c7993831fc48e26107ab29985 |
| RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends gnupg; apt-get dist-clean; mkdir -p /usr/src; cd /usr/src; curl -fsSL -o php.tar.xz "$PHP_URL"; if [ -n "$PHP_SHA256" ]; then echo "$PHP_SHA256 *php.tar.xz" | sha256sum -c -; fi; curl -fsSL -o php.tar.xz.asc "$PHP_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for key in $GPG_KEYS; do gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; done; gpg --batch --verify php.tar.xz.asc php.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME"; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false # buildkit |
| COPY docker-php-source /usr/local/bin/ # buildkit |
| RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libargon2-dev libcurl4-openssl-dev libonig-dev libreadline-dev libsodium-dev libsqlite3-dev libssl-dev libxml2-dev zlib1g-dev ; export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" PHP_BUILD_PROVIDER='https://github.com/docker-library/php' PHP_UNAME='Linux - Docker' ; docker-php-source extract; cd /usr/src/php; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; if [ ! -d /usr/include/curl ]; then ln -sT "/usr/include/$debMultiarch/curl" /usr/local/include/curl; fi; test "$PHP_INI_DIR" != "${PHP_INI_DIR%/php}"; ./configure --build="$gnuArch" --sysconfdir="${PHP_INI_DIR%/php}" --with-config-file-path="$PHP_INI_DIR" --with-config-file-scan-dir="$PHP_INI_DIR/conf.d" --enable-option-checking=fatal --with-mhash --with-pic --enable-mbstring --enable-mysqlnd --with-password-argon2 --with-sodium=shared --with-pdo-sqlite=/usr --with-sqlite3=/usr --with-curl --with-iconv --with-openssl --with-readline --with-zlib --enable-phpdbg --enable-phpdbg-readline --with-pear --with-libdir="lib/$debMultiarch" --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; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; pecl update-channels; rm -rf /tmp/pear ~/.pearrc; php --version # buildkit |
| 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"] |
| WORKDIR /app |
| RUN /bin/sh -c apt-get update && apt-get -y --no-install-recommends install mailcap libcap2-bin && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /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 |
| COPY caddy/frankenphp/Caddyfile /etc/caddy/Caddyfile # buildkit |
| RUN /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 /bin/sh -c apt-get install -y --no-install-recommends libstdc++6 && apt-get clean && ldconfig # buildkit |
| COPY /usr/local/bin/frankenphp /usr/local/bin/frankenphp # buildkit |
| RUN /bin/sh -c setcap cap_net_bind_service=+ep /usr/local/bin/frankenphp && frankenphp version && frankenphp build-info # buildkit |
| WORKDIR /app/ |
| ENV SERVER_NAME=:80 |
| ENV APP_RUNTIME=Runtime\FrankenPhpSymfony\Runtime |
| WORKDIR /app/ |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends acl file gettext git libmagickwand-dev unzip ghostscript && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c install-php-extensions @composer intl gd zip pdo_pgsql opcache apcu pgsql exif imagick xsl ; # buildkit |
| RUN /bin/sh -c find /etc -name "policy.xml" -path "*/ImageMagick*" -exec sed -i 's/rights="none" pattern="PDF"/rights="read|write" pattern="PDF"/' {} \; 2>/dev/null || echo "Aucun fichier policy.xml ImageMagick trouvé - politique PDF non modifiée" # buildkit |
| ENV PHP_INI_SCAN_DIR=:/usr/local/etc/php/app.conf.d |
| ENV COMPOSER_ALLOW_SUPERUSER=1 |
| ENV COMPOSER_MEMORY_LIMIT=-1 |
| COPY --chmod=755 frankenphp/docker-entrypoint.sh /usr/local/bin/docker-entrypoint # buildkit |
| COPY frankenphp/Caddyfile /etc/caddy/Caddyfile # buildkit |
| ENTRYPOINT ["docker-entrypoint"] |
| ENV PHP_INI_SCAN_DIR=:/usr/local/etc/php/app.conf.d |
| COPY frankenphp/conf.d/10-app.ini /usr/local/etc/php/app.conf.d/ # buildkit |
| COPY frankenphp/Caddyfile /etc/caddy/Caddyfile # buildkit |
| COPY assets assets/ # buildkit |
| COPY bin bin/ # buildkit |
| COPY config config/ # buildkit |
| COPY public public/ # buildkit |
| COPY migrations migrations/ # buildkit |
| COPY src src/ # buildkit |
| COPY templates templates/ # buildkit |
| COPY translations translations/ # buildkit |
| COPY composer.json composer.lock ./ # buildkit |
| COPY importmap.php ./ # buildkit |
| CMD ["frankenphp" "run" "--config" "/etc/caddy/Caddyfile"] |
| WORKDIR /app/ |
| ENV APP_ENV=prod |
| ENV APP_DEBUG=0 |
| RUN /bin/sh -c mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" # buildkit |
| COPY frankenphp/conf.d/20-app.prod.ini /usr/local/etc/php/app.conf.d/ # buildkit |
| COPY .env .env.prod.* .env.local* ./ # buildkit |
| COPY composer.* symfony.* ./ # buildkit |
| RUN /bin/sh -c set -eux; composer install --no-cache --prefer-dist --no-dev --no-autoloader --no-scripts --no-progress; mkdir -p var/cache var/log; composer dump-autoload --classmap-authoritative --no-dev; composer dump-env prod; composer run-script --no-dev post-install-cmd; chmod +x bin/console; sync; # buildkit |
Labels
| Key | Value |
|---|---|
| dev.frankenphp.base.fingerprint | eff7e6d1b6af958c9aba09f686566fbcbce9b8aafa55475a8dac12e93e311ed1 |
| org.opencontainers.image.created | 2026-06-26T05:22:55Z |
| org.opencontainers.image.description | The modern PHP app server |
| org.opencontainers.image.licenses | MIT |
| org.opencontainers.image.revision | 3f562082c90275d7550c0417352f8cc5c3d0566a |
| 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.12.4 |
| service | sweloo |
Details
2026-06-26 13:07:42 +02:00
Versions (5)
View all
Container
1
OCI / Docker
linux/amd64
MIT
391 MiB
4bee0f17e051289cce1d2896055f8bb09bfd88d8
2026-06-26
latest-prod
2026-06-26
6dfa727d123e268d423d14555e802b62ea935bee
2026-06-26
e4a501380777b3309369bfda304395b8b77122c0
2026-06-26
9a5a2bd2c4706206b38247af3c3341392b21ab12
2026-06-26