Dockerfile icon indicating copy to clipboard operation
Dockerfile copied to clipboard

add nginx-lua

Open aogg opened this issue 2 years ago • 1 comments

aogg avatar Dec 02 '22 08:12 aogg

Would be easy if you could just install the module, but the config doesn't read snippets from the modules dir, so you have to do something like this on alpine:

RUN apk add --no-cache nginx-mod-http-lua \
    && sed -i '5i \
    load_module /usr/lib/nginx/modules/ndk_http_module.so; \
    load_module /usr/lib/nginx/modules/ngx_http_lua_module.so; \
    pcre_jit on; \
    ' /opt/docker/etc/nginx/nginx.conf

rltas avatar Sep 25 '23 12:09 rltas