I want to use http://nginx.org/en/docs/http/ngx_http_realip_module.html which directs to enable --with-http_realip_module to use it.
I am using docker to use this nginx
FROM nginx:alpine
COPY default.conf /etc/nginx/conf.d/default.conf
Now how to enable this module in this docker? Can I pass some argument while docker run or I need to change dockerfile?