Dockerfile icon indicating copy to clipboard operation
Dockerfile copied to clipboard

Broken LUA support in alpine image

Open rltas opened this issue 10 months ago • 1 comments

FROM webdevops/php-nginx:8.3-alpine

RUN <<-EOT
	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
EOT

This worked until recently, now it produces this error:

INFO spawned: 'nginxd' with pid 78
-> Executing /opt/docker/bin/service.d/nginx.d//10-init.sh
INFO success: nginxd entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
nginx: [alert] failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: /usr/share/lua/common/resty/core/base.lua:24: ngx_http_lua_module 0.10.26 required) in /etc/nginx/nginx.conf:37
WARN exited: nginxd (exit status 1; not expected)

rltas avatar Dec 16 '24 11:12 rltas