From 74d1bfa38cf3260768cf70d4e80aec8f8e71cdb7 Mon Sep 17 00:00:00 2001 From: Zoey Date: Tue, 16 May 2023 19:16:28 +0200 Subject: [PATCH] add lua, don't build static Signed-off-by: Zoey --- Dockerfile | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7220e60..2b108d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,34 +1,43 @@ FROM alpine:3.18.0 as build ARG BUILD +ARG LUAJIT_INC=/usr/include/luajit-2.1 +ARG LUAJIT_LIB=/usr/lib + # Requirements RUN apk add --no-cache ca-certificates build-base patch cmake git mercurial perl \ - libatomic_ops-dev libatomic_ops-static zlib-dev zlib-static pcre-dev linux-headers && \ + libatomic_ops-dev zlib-dev luajit-dev pcre-dev linux-headers && \ mkdir /src && \ # Openssl git clone --recursive https://github.com/quictls/openssl /src/openssl && \ cd /src/openssl && \ /src/openssl/Configure && \ - make -j "$(nproc)" && \ + make -j "$(nproc)" # Nginx - hg clone https://hg.nginx.org/nginx-quic -r "quic" /src/nginx && \ +RUN hg clone https://hg.nginx.org/nginx-quic -r "quic" /src/nginx && \ wget https://raw.githubusercontent.com/nginx-modules/ngx_http_tls_dyn_size/master/nginx__dynamic_tls_records_1.17.7%2B.patch -O /src/nginx/1.patch && \ wget https://github.com/angristan/nginx-autoinstall/raw/master/patches/nginx_hpack_push_with_http3.patch -O /src/nginx/2.patch && \ + wget https://raw.githubusercontent.com/openresty/openresty/master/patches/nginx-1.23.0-resolver_conf_parsing.patch -O /src/nginx/3.patch && \ sed -i "s|nginx/|nginx-proxy-manager/|g" /src/nginx/src/core/nginx.h && \ sed -i "s|Server: nginx|Server: nginx-proxy-manager|g" /src/nginx/src/http/ngx_http_header_filter_module.c && \ sed -i "s|
nginx
|
nginx-proxy-manager
|g" /src/nginx/src/http/ngx_http_special_response.c && \ cd /src/nginx && \ patch -p1