Tutorial
Build a static OCI site
Use this when you only need HTML, CSS, and a tiny image that can be mounted by Kubernetes without a compiled runtime.
Steps
- Create an `index.html` and a shared stylesheet.
- Package the files into a minimal OCI image.
- Run the image locally and check the page content.
- Push the image to a registry once the output is stable.
Example commands
mkdir -p site/assets
cp index.html site/
cp assets/site.css site/assets/
docker build -t ghcr.io/your-org/static-site:local .
docker run --rm -p 8080:80 ghcr.io/your-org/static-site:local
curl -fsS http://localhost:8080/
Why it works
Static HTML keeps the deployment deterministic. There is no application server to warm up, no package manager, and no runtime dependency tree to patch on every release.