Tiny (≈340 KB) dependency-free web server: static files, reverse proxy, live reload, metrics.
106
LITH is a lightweight, fast and secure web server written in standard C11,
with no external dependencies. This image is built FROM scratch: it contains
only the LITH executable and a sample site — about 340 KB, no shell, no OS to patch.
/__lith/status (JSON) and /__lith/metrics (Prometheus)docker stop, built-in HEALTHCHECKPlatforms: linux/amd64, linux/arm64 (Raspberry Pi, Apple Silicon, ARM servers)
# Sample site on http://localhost:8090
docker run -d -p 8090:8090 fomadev0/lith
# Your own site (mounted read-only)
docker run -d -p 8090:8090 -v "$PWD/public:/srv/public:ro" fomadev0/lith:1.0.0
# Your own configuration
docker run -d -p 8090:8090 \
-v "$PWD/lith.conf:/lith.conf:ro" \
-v "$PWD/public:/srv/public:ro" \
fomadev0/lith:1.0.0
| Tag | Content |
|---|---|
1.0.0 | Exact version, never changes — recommended for production |
1.0 | Latest 1.0.x (bug fixes) |
latest | Latest stable release |
| Port | 8090 |
| Configuration | /lith.conf (KEY=VALUE format) |
| Site root | /srv/public |
| Health check | GET /__lith/health (also lith health inside the container) |
Example lith.conf:
PORT=8090
PUBLIC_DIR=/srv/public
SPA_FALLBACK=1
GZIP=1
RATE_LIMIT=50
PROXY=/api http://backend:3000
services:
web:
image: fomadev0/lith:1.0.0
ports: ["8090:8090"]
volumes:
- ./public:/srv/public:ro
restart: unless-stopped
This image is built without TLS to stay tiny: put it behind your ingress, load balancer
or a proxy such as Caddy or Traefik. Native HTTPS is available when building LITH from
source with make TLS=1.
Distributed under the Fordima Public License (FPL).
Content type
Image
Digest
sha256:a36ab24f7…
Size
105.8 kB
Last updated
5 days ago
docker pull fomadev0/lith