A folder becomes a website. Nginx with sensible defaults and zero configuration.
6.9K
A folder becomes a website.
bsantanna/nginx-static serves whatever you put in it, instantly. Mount a folder with an index.html, and it's live on port 80 — gzip on, sensible defaults, zero configuration.
docker run -d --name website -p 8080:80 \
-v "$PWD/site:/var/www/html/website:ro" \
bsantanna/nginx-static
Open http://localhost:8080.
Package the site and the server together:
FROM bsantanna/nginx-static
COPY site/ /var/www/html/website/
| Document root | /var/www/html/website (volume) |
| Index | index.html, index.htm |
| Port | 80 |
| Server | Nginx stable, on Debian 12 (Bookworm) |
| Tag | Meaning |
|---|---|
latest | The newest release. |
YYYY.MM.XX | A fixed release, e.g. 2026.11.01. Pin this in production. |
Multi-architecture: linux/amd64 and linux/arm64.
Content type
Image
Digest
sha256:510ca48c6…
Size
69 MB
Last updated
4 days ago
docker pull bsantanna/nginx-static