Sign inSign up

lampe/minimal-nginx

By lampe

Updated almost 11 years ago

A minimal image for nginx - created with makejail

Image
3

10K+

lampe/minimal-nginx repository overview

Minimal nginx image

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

Embedded busybox

Images tagged -busybox contain a static /bin/sh to interact with the container:

docker exec -t -i $name /bin/sh

Tag summary

Content type

Image

Digest

sha256:2357fae23

Size

6.6 MB

Last updated

almost 11 years ago

docker pull lampe/minimal-nginx