Skip to content

Instantly share code, notes, and snippets.

View jensscherbl's full-sized avatar

Jens Scherbl jensscherbl

  • Munich, Germany
  • 05:00 (UTC +02:00)
View GitHub Profile
@jensscherbl
jensscherbl / frankenphp-php8.5-alpine3.23.yaml
Last active June 4, 2026 08:36
In addition to the Docker Hardened Images using pre-built upstream packages, this is an alternative, even more minimal image variant containing only a standalone, completely static FrankenPHP binary. The build step for these images uses StaticPHP, the same tool that is used to compile the partially static, pre-built packages.
# syntax=dhi.io/build:2-alpine3.23
name: FrankenPHP
image: ghcr.io/kenshodigital/frankenphp
variant: runtime
tags:
- static-php8.5-alpine
- static-php8.5-alpine3.23
platforms:
<?php
/*
Some extension.
*/
function delegate(array $context)
{
if (!isset($context['section_ids'])) {
return;
}
<?php
final class Worker
{
private $id;
private $handle;
private $mutex;
private $condition;
private $loop;
private $callables;
<?php
final class Runnable
{
private $callables;
public function __construct(callable ...$callables)
{
$this->callables = $callables;
}