chore: disable nginx HTTP rewrites to reduce image size

This commit is contained in:
Matthew Lopez 2024-06-03 20:21:12 -04:00
parent 181c600d66
commit 331cf24564
No known key found for this signature in database
GPG Key ID: 302A6EE3D63B7E0E

View File

@ -38,18 +38,13 @@ RUN ./configure \
--with-http_ssl_module \
--with-openssl=/tmp/openssl-${openssl_version} \
--with-openssl-opt="enable-weak-ssl-ciphers" \
--with-pcre
--without-http_rewrite_module
RUN make -j$(nproc)
RUN make install
# * Use Ubuntu to run Nginx
FROM ubuntu:latest AS final
RUN apt-get update \
&& apt-get install -y \
libpcre3 \
&& apt-get clean
# * Create required directories
RUN mkdir -p /var/log/nginx