Lighttpd and PHP running on an Alpine Docker image.
Build using;
docker build -t alpine-lighttpd-php .Run from Docker Hub using;
docker run --name "my-lighttpd-php" --rm -p 8000:80 -v $(pwd)/html:/var/www alastairhm/alpine-lighttpd-phpOr from GitHub packages using;
docker run --name "my-lighttpd-php" --rm -p 8000:80 -v $(pwd)/html:/var/www ghcr.io/alastairhm/alpine-lighttpd-phpWorks for static & PHP web content. Mount a directory that contains only the files you
intend to serve — anything under the mounted path is reachable over HTTP, so avoid
mounting a repo root or other directory containing non-public files (e.g. .git,
Dockerfile, secrets).
_ _ __ __
/\ | | | | \/ | Email : alastair@montgomery.me.uk
/ \ | |__| | \ / | Web : https://blog.0x32.co.uk/
/ /\ \ | __ | |\/| | Twitter : @alastair_hm
/ ____ \| | | | | | |
/_/ \_\_| |_|_| |_| (c) 2021