Sign inSign up

mkodockx/docker-nginx-simple

By mkodockx

•Updated over 9 years ago

A fast and simple NGINX container image, providing static HTML or resources.

Image
0

1.2K

mkodockx/docker-nginx-simple repository overview

⁠docker-nginx-simple

⁠Quickstart

Use as base for your image:

  • Create your Dockerfile

    FROM mkodockx/docker-nginx-simple ADD your/www/ /var/www/

  • Build it

    docker build -t yourname/your-image-name

  • Run it

    docker run -d --name yourname -p 80:80 yourname/your-image-name

⁠Info

A high-performance Nginx base image for Docker to serve static websites. It will serve anything in the /var/www directory.

⁠nginx.conf

The nginx.conf and mime.types are pulled with slight modifications from the h5bp Nginx HTTP server boilerplate configs project at https://github.com/h5bp/server-configs-nginx⁠

Further modifications taken from https://t37.net/nginx-optimization-understanding-sendfile-tcp_nodelay-and-tcp_nopush.html⁠ and the nginx home.

Tag summary

Content type

Image

Digest

sha256:368978ee4…

Size

42.7 MB

Last updated

over 9 years ago

docker pull mkodockx/docker-nginx-simple