openresty / docker-openresty

Docker tooling for OpenResty
https://hub.docker.com/r/openresty/openresty
BSD 2-Clause "Simplified" License
935 stars 525 forks source link

Adding Third Party Modules to Debian Images Utilizing the ".deb" Installation #245

Open michohl opened 7 months ago

michohl commented 7 months ago

I'm attempting to transition our openresty images from Alpine to Debian currently. However, we have a single module, NAXSI, that we load into our image which we were historically adding as part of the compile step as a dynamic module.

The new debian images are no longer doing the compile in the Dockerfile but are instead expecting the user to use opm to install additional modules. However, the module I'm attempting to install does not have an opm package of their module: https://github.com/wargio/naxsi/issues/114

In other versions of the Dockerfile it seems that this could be done through something like REST_CONFIG_OPTIONS_MORE https://github.com/openresty/docker-openresty/blob/30682c9b6066ed30740b5e6f9a555549e873529b/jammy/Dockerfile#L54

which is no longer available in the Debian images as far as I can tell.

What would be the best way to go about building a Docker image that has a third party package installed without utilizing opm?