Sign inSign up

jonjack/alpinginx

By jonjack

Updated over 10 years ago

Minimal Docker image for running Nginx on Alpine Linux.

Image
4

419

jonjack/alpinginx repository overview

Minimal docker image for running Nginx on Alpine Linux.


  nginx-logo       alpinelinux-logo


Use as a base for your own Nginx projects - I shall endeavor to keep this image tracking the latest releases.


Specs
Docker TagSize (compressed)Versions
latest28 mb (11 mb)Nginx 1.9.9

Resources

Usage

After executing the following - and assuming port 80 was free on your host - you should be able to view the default Nginx welcome page at the IP of your host.

docker run -d -p 80:80 jonjack/alpinginx

The image exposes the following ports:

80 8080 443


Mounting a Volume

Mount a volume so that you can push your own content into the Nginx home path.

docker run -d -p 80:80 -v /host/path/nginx/html:/app/nginx/html jonjack/alpinginx

Content put into /host/path/nginx/html on the host machine should then be accessible to the Nginx document root at /app/nginx/html.


Why Another Image ?

There are a few Nginx on Alpine images already, but I had some specific use case of my own:-

  • verifies the integrity of the Nginx archive
  • uses latest version of Nginx
  • Nginx docroot at /app/nginx
  • Removes any unnecessary leftovers of the build

Tag summary

Content type

Image

Digest

sha256:15e3427c5

Size

10.6 MB

Last updated

over 10 years ago

docker pull jonjack/alpinginx