nginx - a small variation of nginx build on debian and shrunk down to 10.7MB
527
This is a small image of nginx web server. It is useful for static web pages. Both http and https.
Check out: https://hub.docker.com/r/tigersmile/nginx-micro for an even smaller statically built image.
Built on debian trixie-slim linux.
Build this with "docker buildx build -t nginx ."
Pulls the nginx runtime from debian apt sources.
See the source on github https://github.com/dgadams/nginx
I generally run this with a docker compose file:
name: nginx
services:
nginx:
container_name: web-server
image: dgadams/nginx:trixie
# image: nginx:alpine-slim
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- /home/doug/www/nginx.conf:/etc/nginx/nginx.conf
- /home/doug/www/html:/var/www/html
- /home/doug/.certs:/etc/nginx/certs
# networks:
# - cf-tunnel
#networks:
# cf-tunnel:
# external: true
Content type
Image
Digest
sha256:09ec11e0c…
Size
4.2 MB
Last updated
2 months ago
docker pull dgadams/nginx:alpine