It would be nice to add in the image the docker-entrypoint.sh file and the docker-entrypoint.d folder which are provided in the nginx official image and add it as an ENTRYPOINT of the openresty image:
ENTRYPOINT ["/docker-entrypoint.sh"]
(see : https://github.com/nginxinc/docker-nginx/blob/f958fbacada447737319e979db45a1da49123142/mainline/debian/Dockerfile)
This will allow to use environnement variables in the configuration as described here :
https://github.com/docker-library/docs/tree/master/nginx#using-environment-variables-in-nginx-configuration-new-in-119 :)
Note that docker-entrypoint.sh may have to be adapted to support the "/usr/bin/openresty" command:
if [ "$1" = "nginx" -o "$1" = "nginx-debug" ]; then
-->
if [ "$1" = "/usr/bin/openresty"]; then
It would be nice to add in the image the docker-entrypoint.sh file and the docker-entrypoint.d folder which are provided in the nginx official image and add it as an ENTRYPOINT of the openresty image:
ENTRYPOINT ["/docker-entrypoint.sh"](see : https://github.com/nginxinc/docker-nginx/blob/f958fbacada447737319e979db45a1da49123142/mainline/debian/Dockerfile)
This will allow to use environnement variables in the configuration as described here :
https://github.com/docker-library/docs/tree/master/nginx#using-environment-variables-in-nginx-configuration-new-in-119 :)
Note that docker-entrypoint.sh may have to be adapted to support the "/usr/bin/openresty" command:
if [ "$1" = "nginx" -o "$1" = "nginx-debug" ]; then-->
if [ "$1" = "/usr/bin/openresty"]; then