Skip to content

Add lua module #165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ ARG GEOIP2_VERSION=3.4
# https://github.com/tokers/zstd-nginx-module/releases
ARG ZSTD_VERSION=0.1.1

# https://github.com/openresty/luajit2/tags
ARG LUAJIT2_VERSION=v2.1-20250117

# NGINX UID / GID
ARG NGINX_USER_UID=100
ARG NGINX_GROUP_GID=101
Expand Down Expand Up @@ -84,7 +87,7 @@ ARG CONFIG="\
--add-dynamic-module=/usr/src/ngx_http_geoip2_module \
"

FROM alpine:3.20 AS base
FROM alpine:3.22 AS base

ARG NGINX_VERSION
ARG NGINX_COMMIT
Expand All @@ -93,6 +96,7 @@ ARG HEADERS_MORE_VERSION
ARG NJS_COMMIT
ARG GEOIP2_VERSION
ARG ZSTD_VERSION
ARG LUAJIT2_VERSION
ARG NGINX_USER_UID
ARG NGINX_GROUP_GID
ARG CONFIG
Expand Down Expand Up @@ -182,6 +186,10 @@ RUN \
echo "Downloading zstd-nginx-module ..." \
&& git clone --depth 1 --branch ${ZSTD_VERSION} https://github.com/tokers/zstd-nginx-module.git /usr/src/zstd

RUN \
echo "Downloading luajit2 ..." \
&& git clone --depth 1 --branch ${LUAJIT2_VERSION} https://github.com/openresty/luajit2.git /usr/src/luajit2

RUN \
echo "Cloning and configuring quickjs ..." \
&& cd /usr/src \
Expand Down Expand Up @@ -236,7 +244,7 @@ RUN \
| xargs -r apk info --installed \
| sort -u > /tmp/runDeps.txt

FROM alpine:3.20
FROM alpine:3.22
ARG NGINX_VERSION
ARG NGINX_COMMIT
ARG NGINX_USER_UID
Expand Down