No description
  • Dockerfile 100%
Find a file
Moritz Poldrack 5afa76d40a
Some checks failed
Build container / build (push) Failing after 5s
add CI Pipeline and README
2026-04-20 10:02:37 +02:00
.forgejo/workflows add CI Pipeline and README 2026-04-20 10:02:37 +02:00
LICENSES make REUSE compliant 2026-04-09 10:20:34 +02:00
busybox.config make REUSE compliant 2026-04-09 10:20:34 +02:00
Containerfile make REUSE compliant 2026-04-09 10:20:34 +02:00
README.md add CI Pipeline and README 2026-04-20 10:02:37 +02:00
renovate.json Add renovate.json 2026-04-09 11:20:48 +02:00
renovate.json.license Add renovate.json 2026-04-09 11:20:48 +02:00

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 static user.
  • No directory listing — serve an index.html at the root.
  • HTTPS termination should happen upstream (reverse proxy, ingress, etc.).