Skip to content

Commit

Permalink
remove perl
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Jan 23, 2024
1 parent be28260 commit 6290156
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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;"]

0 comments on commit 6290156

Please sign in to comment.