NGINX offers some very convenient Docker containers, but it is not documented how to extend the functionality of those containers without re-compiling NGINX yourself and continuously adapting your Dockerfile to match the ones in https://github.com/nginxinc/docker-nginx/.
This gist offers a way to build a NGINX βdynamic moduleβ against the widely used βnginx:alpineβ docker image. Simply copy this Dockerfile & replace the arguments of the βwgetβ & βtarβ & βconfigureβ commands to include the module you want to build, then adjust the COPY command copying the module (.so file). In this example the NCHAN module is used as an example.
If you found this helpful, please leave a comment / reaction here! :love:
@mtgq this gist provides a way to build modules externally, but Iβm not maintaining the gist carefully. Previously this worked, maybe a recent update broke it: you can retry with an older base image.
If you find a fix please let us know in this thread and will add the fix.
Note that Iβm not affiliated with NGINX in any way.