Sign inSign up

mpldr/static-site

By mpldr

Updated about 1 month ago

Serves a static site. Nothing else. If you want to serve your static site from a Container.

Image
Networking
Web servers
0

869

mpldr/static-site repository overview

static-site

Repo: https://g.mp.gy/images/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.).

Tag summary

Content type

Image

Digest

sha256:95149bd54

Size

100.2 kB

Last updated

about 1 month ago

docker pull mpldr/static-site