A minimal image for nginx - created with makejail
10K+
Just copy or mount your static website into /srv/www. Replace configuration in /etc/nginx
Example Dockerfile:
FROM lampe/minimal-nginx
COPY content /srv/www/
#COPY config /etc/nginx/ ## image might be missing libraries for some modules
Example Mount:
docker run -v $contentPath:/srv/www:ro lampe/minimal-nginx
Or:
docker run -d -v /srv/www --name dataContainer busybox
docker run --volumes-from dataContainer:ro lampe/minimal-nginx
Images tagged -busybox contain a static /bin/sh to interact with the container:
docker exec -t -i $name /bin/sh
Content type
Image
Digest
sha256:2357fae23…
Size
6.6 MB
Last updated
almost 11 years ago
docker pull lampe/minimal-nginx