From 62901566237c4530fb316ae0330564183cc0499b Mon Sep 17 00:00:00 2001 From: Zoey Date: Tue, 23 Jan 2024 13:38:04 +0100 Subject: [PATCH] remove perl Signed-off-by: Zoey --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index bdd97a2..7c5ebfa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ ARG NHG2M_VER=3.4 WORKDIR /src # Requirements RUN apk add --no-cache ca-certificates build-base patch cmake git libtool autoconf automake \ - libatomic_ops-dev zlib-dev luajit-dev pcre2-dev linux-headers yajl-dev libxml2-dev libxslt-dev perl-dev curl-dev lmdb-dev libfuzzy2-dev lua5.1-dev lmdb-dev geoip-dev libmaxminddb-dev + libatomic_ops-dev zlib-dev luajit-dev pcre2-dev linux-headers yajl-dev libxml2-dev libxslt-dev curl-dev lmdb-dev libfuzzy2-dev lua5.1-dev lmdb-dev geoip-dev libmaxminddb-dev # Openssl RUN git clone --recursive https://github.com/quictls/openssl --branch "$OPENSSL_VER" /src/openssl # modsecurity @@ -84,7 +84,7 @@ RUN cd /src/nginx && \ --with-http_v2_module \ --with-http_v3_module \ --with-http_ssl_module \ - --with-http_perl_module \ +# --with-http_perl_module \ # perl-dev in apk add needed --with-http_geoip_module \ --with-http_realip_module \ --with-http_gunzip_module \ @@ -114,12 +114,12 @@ RUN cd /src/nginx && \ FROM python:3.12.1-alpine3.19 COPY --from=build /usr/local/nginx /usr/local/nginx -COPY --from=build /usr/local/lib/perl5 /usr/local/lib/perl5 -COPY --from=build /usr/lib/perl5/core_perl/perllocal.pod /usr/lib/perl5/core_perl/perllocal.pod +#COPY --from=build /usr/local/lib/perl5 /usr/local/lib/perl5 # perl in apk add needed +#COPY --from=build /usr/lib/perl5/core_perl/perllocal.pod /usr/lib/perl5/core_perl/perllocal.pod # perl in apk add needed COPY --from=build /usr/local/modsecurity/lib/libmodsecurity.so.3 /usr/local/modsecurity/lib/libmodsecurity.so.3 COPY --from=build /src/ModSecurity/unicode.mapping /usr/local/nginx/conf/conf.d/include/unicode.mapping COPY --from=build /src/ModSecurity/modsecurity.conf-recommended /usr/local/nginx/conf/conf.d/include/modsecurity.conf.example -RUN apk add --no-cache ca-certificates tzdata tini zlib luajit pcre2 libstdc++ yajl libxml2 libxslt perl libcurl lmdb libfuzzy2 lua5.1-libs geoip libmaxminddb-libs && \ +RUN apk add --no-cache ca-certificates tzdata tini zlib luajit pcre2 libstdc++ yajl libxml2 libxslt libcurl lmdb libfuzzy2 lua5.1-libs geoip libmaxminddb-libs && \ ln -s /usr/local/nginx/sbin/nginx /usr/local/bin/nginx ENTRYPOINT ["tini", "--", "nginx"] CMD ["-g", "daemon off;"]