Minimal Docker image for running Nginx on Alpine Linux.
419

Use as a base for your own Nginx projects - I shall endeavor to keep this image tracking the latest releases.
| Docker Tag | Size (compressed) | Versions |
|---|---|---|
| latest | 28 mb (11 mb) | Nginx 1.9.9 |
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
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.
There are a few Nginx on Alpine images already, but I had some specific use case of my own:-
/app/nginxContent type
Image
Digest
sha256:15e3427c5…
Size
10.6 MB
Last updated
over 10 years ago
docker pull jonjack/alpinginx