No description
- Dockerfile 100%
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| LICENSES | ||
| busybox.config | ||
| Containerfile | ||
| README.md | ||
| renovate.json | ||
| renovate.json.license | ||
static-site
Minimal container image for serving static files. Uses busybox httpd on a
scratch base — no shell, no package manager, no attack surface.
Listens on port 4567.
Usage
Derive from this image and copy your files into /static.
FROM c8n.io/mpldr/static-site:latest
COPY --chown=static:static ./public /static
Then build and run:
docker build -t my-site .
docker run -p 4567:4567 my-site
Site available at http://localhost:4567.
Notes
- Files must be owned by (or readable by) the
staticuser. - No directory listing — serve an
index.htmlat the root. - HTTPS termination should happen upstream (reverse proxy, ingress, etc.).