Minimal Symfony + Workerman app in a static binary on scratch. Just 5MB. For demo use only.
378
This Docker image showcases a minimal setup of a Symfony application running with Workermanโ on a scratch base image.
The entire application is compiled into a single static binary using static-php-cliโ , resulting in an image size of less than 5MB.
scratch โ no OS layerstatic-php-cliMake sure you have Docker installed. To run the image and expose the app on port 8080:
docker run --rm -p 8080:8080 crazygoat/small-php
Then open your browser and navigate to:
http://localhost:8080
โ
The server will start automatically and listen on port 8080.
stdout/stderr (file-based logging not supported)This image is meant for experimentation and educational purposes โ to demonstrate how far PHP and Symfony can be minimized and containerized.
It is not optimized or recommended for production environments.
scratch images work.Content type
Image
Digest
sha256:668066ef2โฆ
Size
4.8 MB
Last updated
over 1 year ago
docker pull crazygoat/small-php