make nginx build silently
All checks were successful
Publish Docker Image / docker (push) Successful in 1m13s

This commit is contained in:
Lee 2024-02-26 17:52:32 +00:00
parent b893f23ba5
commit 14ce3e887c

@ -7,12 +7,14 @@ RUN apk update && apk upgrade && \
# Download and build the latest version of Nginx from source # Download and build the latest version of Nginx from source
WORKDIR /tmp WORKDIR /tmp
RUN wget https://nginx.org/download/nginx-1.25.3.tar.gz RUN wget https://nginx.org/download/nginx-1.25.3.tar.gz && \
RUN tar -xzvf nginx-1.25.3.tar.gz tar -xzvf nginx-1.25.3.tar.gz && \
WORKDIR /tmp/nginx-1.25.3 cd nginx-1.25.3 && \
RUN ./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/sbin/nginx --conf-path=/etc/nginx/nginx.conf ./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/sbin/nginx --conf-path=/etc/nginx/nginx.conf && \
RUN make make > /dev/null 2>&1 && \
RUN make install make install > /dev/null 2>&1 && \
make_status=$? && \
if [ $make_status -ne 0 ]; then echo "Nginx build failed"; exit $make_status; fi
# Cleanup unnecessary files # Cleanup unnecessary files
RUN rm -rf /tmp/* RUN rm -rf /tmp/*