Sign inSign up

paularlott/knot-frankenscriptling

By paularlott

•Updated about 9 hours ago

PHP + Caddy Knot image with Scriptling built in for embedded scripting via FrankenPHP.

Image
Developer tools
0

4.6K

paularlott/knot-frankenscriptling repository overview

⁠knot-frankenscriptling

A PHP development image for knot⁠ spaces, based on knot-frankenphp⁠, with the FrankenPHP/Caddy binary replaced by the Scriptling-enabled build from knot-frankenscriptling-runtime⁠. It carries the full dev layer — ssh, git, editors, shells, Composer, Node.js, mago and mutagen — plus the same Caddy module set (DNS-01, Mercure, Vulcain, brotli, log-transform) and the Scriptling extension.

This exposes the Scriptling⁠ class to PHP, so applications can embed the Scriptling scripting/agent runtime directly:

$vm = new Scriptling();
$vm->setVar('name', 'world');
echo $vm->eval('name');           // -> "world"
echo $vm->getScriptlingVersion(); // e.g. 0.20.1

Serve any HTML or PHP file from ~/public_html on port 80, exactly like knot-frankenphp.

⁠Tags

All tags are multi-arch (linux/amd64, linux/arm64); see Docker Hub⁠ for the current list. Each release is also tagged <version>-<BUILD_DATE>.

⁠Usage

docker run -d \
  -p 8080:80 \
  -e KNOT_SERVER=https://knot.example.com \
  -e KNOT_USER=alice \
  -v knot_home:/home \
  paularlott/knot-frankenscriptling:8.5

⁠Environment variables

The entrypoint mirrors knot-ubuntu, so it supports the common knot variables:

VariableDefaultDescription
KNOT_USERknotRuntime user (uid 1000); created if missing
KNOT_SERVER(unset)knot server URL; if set, the agent is downloaded and started
KNOT_AGENT_ENDPOINT(unset)Agent endpoint reported to the server
KNOT_SPACEID(unset)Space identifier
KNOT_SERVICE_PASSWORD(auto-generated UUID)Shared service password
KNOT_SSHD(unset)Set to native to start sshd
KNOT_SSH_PORT2222Port for the SSH daemon
KNOT_SYSLOG_PORT1514Syslog forward target (0 disables forwarding)
TZEtc/UTCTimezone (also sets date.timezone)

⁠Exposed ports

PortProtocolPurpose
80TCPHTTP (FrankenPHP)
443TCP/UDPHTTPS / HTTP/3 (when enabled)
2019TCPCaddy admin API

⁠Volumes

  • /home — persistent home directory; serve content from ~/public_html.

⁠License

FrankenPHP is MIT⁠. Scriptling retains its own licence — see paularlott/scriptling⁠. This image's packaging is Apache License 2.0⁠.

Source: paularlott/knot-base-images⁠.

Tag summary

Content type

Image

Digest

sha256:778803bd3…

Size

450.3 MB

Last updated

about 9 hours ago

docker pull paularlott/knot-frankenscriptling:8.5-20260929