From b51814bba85ce5c27256e334c4572ed4d2d2cc70 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 26 Oct 2023 11:55:02 +0100 Subject: [PATCH] stuff --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 155b49f..144aace 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +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 cd nginx-* RUN ./configure --prefix=/usr/local/nginx \ --sbin-path=/usr/local/sbin/nginx \ --conf-path=/etc/nginx/nginx.conf \ @@ -29,7 +29,7 @@ RUN make install FROM alpine:latest # Copy Nginx binary and configuration from the build stage -COPY --from=build /usr/local/nginx /usr/local/nginx +COPY --from=build /usr/local/sbin/nginx /usr/local/sbin/nginx COPY --from=build /etc/nginx /etc/nginx # Copy custom Nginx configuration