Skip to content

Broken LUA support in alpine image #534

@rltas

Description

@rltas
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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions