From f342efdabf3254b259835dd30084f9ea52f75cf6 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 13 Oct 2023 19:44:24 +0100 Subject: [PATCH] fix default nginx page from showing --- Dockerfile | 2 +- docker/start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d9ce58f..c17b33c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /tmp RUN wget https://nginx.org/download/nginx-1.25.2.tar.gz RUN tar -xzvf nginx-1.25.2.tar.gz WORKDIR /tmp/nginx-1.25.2 -RUN ./configure --prefix=/usr/local/nginx --sbin-path=/usr/local/sbin/nginx +RUN ../configure --prefix=/usr/local/nginx --sbin-path=/usr/local/sbin/nginx --conf-path=/etc/nginx/nginx.conf RUN make RUN make install diff --git a/docker/start.sh b/docker/start.sh index c53aa40..f96a68d 100644 --- a/docker/start.sh +++ b/docker/start.sh @@ -41,7 +41,7 @@ function start() { echo "Starting PHP & Nginx" php-fpm81 && chmod 777 /run/php/php.sock && - nginx -g 'daemon off;' + /usr/local/sbin/nginx -g 'daemon off;' } # Start Nginx and retry if it fails