From bb1a051aaaacc3721977642c808ba3d4abc37b76 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 26 Oct 2023 11:59:53 +0100 Subject: [PATCH] pls? --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a8b3732..3ffa353 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,7 @@ RUN tar -zxvf nginx-*.tar.gz RUN git clone https://github.com/aperezdc/ngx-fancyindex.git ngx-fancyindex # Build Nginx from source -WORKDIR /tmp/nginx-* -RUN ./configure --prefix=/usr/local/nginx \ +RUN cd nginx-* && ./configure --prefix=/usr/local/nginx \ --sbin-path=/usr/local/sbin/nginx \ --conf-path=/etc/nginx/nginx.conf \ --error-log-path=/var/log/nginx/error.log \ @@ -39,4 +38,4 @@ COPY ./nginx.conf /etc/nginx/nginx.conf EXPOSE 80 # Start Nginx when the container runs -CMD ["/usr/local/sbin/nginx", "-g", "daemon off;"] \ No newline at end of file +CMD ["/usr/local/sbin/nginx", "-g", "daemon off;"]