From 2c5420e3c80098f392110b15436b3b1312b7db1b Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Fri, 17 Jan 2025 08:04:47 +0100 Subject: [PATCH] Hago borrar el nginx.conf preinstalado --- Dockerfile | 3 ++- nginx/{default.conf => nginx.conf} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename nginx/{default.conf => nginx.conf} (100%) diff --git a/Dockerfile b/Dockerfile index abcc4fe..63302aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,8 @@ USER 0 # install nginx RUN apt-get update && apt-get install nginx -y # copy our nginx configuration to overwrite nginx defaults -COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf +RUN rm /etc/nginx/conf.d/default.conf +COPY ./nginx/nginx.conf /etc/nginx/conf.d # link nginx logs to container stdout RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log diff --git a/nginx/default.conf b/nginx/nginx.conf similarity index 100% rename from nginx/default.conf rename to nginx/nginx.conf