Open mschfh opened 2 years ago
I also needed a debug image. Ubuntu main nginx has debug always build in. I also needed a openresty debug image. You can easy build one, but not ideal if you need one sometimes in production.
git clone https://github.com/openresty/docker-openresty.git
cd docker-openresty
docker build --build-arg RESTY_CONFIG_OPTIONS_MORE="--with-debug" -t openresty-debug -f jammy/Dockerfile .
Please consider publishing
-debug
images to Docker Hub.nginx includes a
nginx-debug
binary in all images: https://github.com/docker-library/docs/tree/master/nginx#running-nginx-in-debug-mode