+26
-15
@@ -38,12 +38,13 @@ ARG TARGETARCH
|
||||
RUN select_source ${APT_SOURCE};
|
||||
|
||||
# 安装依赖的软件包及库
|
||||
RUN install_pkg libpcre3 libpcre3-dev \
|
||||
zlib1g zlib1g-dev \
|
||||
libxslt1.1 libxslt1-dev \
|
||||
libgd3 libgd-dev \
|
||||
libxml2 libxml2-dev \
|
||||
geoip-bin geoip-database libgeoip-dev
|
||||
RUN install_pkg libperl-dev \
|
||||
libpcre2-32-0 libpcre2-16-0 libpcre2-posix3 libpcre2-dev \
|
||||
zlib1g zlib1g-dev \
|
||||
libxslt1.1 libxslt1-dev \
|
||||
libgd3 libgd-dev \
|
||||
libxml2 libxml2-dev \
|
||||
geoip-bin geoip-database libgeoip-dev
|
||||
|
||||
# 下载并解压软件包 nginx: https://nginx.org/download/nginx-1.28.1.tar.gz
|
||||
RUN set -eux; \
|
||||
@@ -75,28 +76,38 @@ RUN set -eux; \
|
||||
--http-uwsgi-temp-path=/var/cache/${APP_NAME}/uwsgi_temp \
|
||||
--http-scgi-temp-path=/var/cache/${APP_NAME}/scgi_temp \
|
||||
\
|
||||
--with-pcre \
|
||||
--with-pcre-jit \
|
||||
--with-http_ssl_module \
|
||||
--with-http_v2_module \
|
||||
--with-http_v3_module \
|
||||
--with-http_realip_module \
|
||||
--with-http_xslt_module \
|
||||
--with-http_image_filter_module \
|
||||
--with-http_geoip_module \
|
||||
--with-http_sub_module \
|
||||
--with-http_dav_module \
|
||||
--with-http_mp4_module \
|
||||
--with-http_flv_module \
|
||||
--with-http_gunzip_module \
|
||||
--with-http_gzip_static_module \
|
||||
--with-http_auth_request_module \
|
||||
--with-http_addition_module \
|
||||
--with-http_slice_module \
|
||||
\
|
||||
--with-stream \
|
||||
--with-stream_geoip_module \
|
||||
--with-http_random_index_module \
|
||||
--with-http_secure_link_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-mail_ssl_module \
|
||||
--with-pcre \
|
||||
--with-pcre-jit \
|
||||
--with-poll_module \
|
||||
--with-stream_realip_module \
|
||||
--with-stream_ssl_module \
|
||||
--with-threads \
|
||||
--with-poll_module \
|
||||
--with-mail \
|
||||
\
|
||||
--with-stream=dynamic \
|
||||
--with-stream_geoip_module=dynamic \
|
||||
--with-http_perl_module=dynamic \
|
||||
--with-http_geoip_module=dynamic \
|
||||
--with-http_xslt_module=dynamic \
|
||||
--with-http_image_filter_module=dynamic \
|
||||
--with-mail=dynamic \
|
||||
; \
|
||||
make -j "$(nproc)" && make install; \
|
||||
strip /usr/local/${APP_NAME}/sbin/nginx;
|
||||
|
||||
Reference in New Issue
Block a user