超最小構成でこんな感じ
FROM openresty/openresty:1.19.9.1-alpine WORKDIR /app COPY nginx.conf nginx.conf EXPOSE 8080 CMD ["nginx", "-c", "/app/nginx.conf"]
daemon off; http { server { listen 8080; location /hello { default_type text/plain; content_by_lua_block { ngx.say("hello") } } } }
参考になりそう→ 逆引きlua-nginx-module · GitHub