Sign inSign up

bsantanna/nginx-static

By bsantanna

•Updated 4 days ago

A folder becomes a website. Nginx with sensible defaults and zero configuration.

Image
Networking
Internet of things
Web servers
0

6.9K

bsantanna/nginx-static repository overview

⁠nginx-static

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.

⁠Run it

docker run -d --name website -p 8080:80 \
  -v "$PWD/site:/var/www/html/website:ro" \
  bsantanna/nginx-static

Open http://localhost:8080⁠.

⁠Ship it as an image

Package the site and the server together:

FROM bsantanna/nginx-static
COPY site/ /var/www/html/website/

⁠Details

Document root/var/www/html/website (volume)
Indexindex.html, index.htm
Port80
ServerNginx stable, on Debian 12 (Bookworm)

⁠Tags

TagMeaning
latestThe newest release.
YYYY.MM.XXA fixed release, e.g. 2026.11.01. Pin this in production.

Multi-architecture: linux/amd64 and linux/arm64.

⁠Source

github.com/bsantanna/docker-images⁠

Tag summary

Content type

Image

Digest

sha256:510ca48c6…

Size

69 MB

Last updated

4 days ago

docker pull bsantanna/nginx-static