nginx dockerfile.

Ahmed Charles acharles at
Wed Sep 2 15:17:36 UTC 2015

On 8/25/2015 11:26 PM, Atul Sowani wrote:
> Hi,
> I checked nginx code repository as well as Internet to see if I can
> get a Dockerfile to build nginx. I got a few references (like
> but those are essentially to
> _run_ nginx, not _build_ it.
> I am looking to build different versions of nginx (say
> top-of-the-tree, latest-stable etc.) easily. It would be very
> convenient if a Dockerfile is presented with the source code which
> will build one of the versions mentioned above. If required, a slight
> modification can then build any version of nginx.
> I would highly appreciate if somebody could point me to a source where
> I can get a Dockerfile which builds nginx.

The official Dockerfile is here:

You can replace the apt-get commands with commands which build nginx,
just like you would on a normal linux system. Or you could even build a
custom .deb and use that.

More information about the nginx-devel mailing list