From ba3f68ff591b663152083b4ee88c6ac5dc57402c Mon Sep 17 00:00:00 2001 From: Lorena Hendrix Date: Sun, 16 Jun 2024 12:51:11 +0200 Subject: [PATCH] removed certbot installation from nginx docker file --- nginx/Dockerfile | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index f75a454..1ac511b 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -1,27 +1,9 @@ FROM nginx:latest -# Install Certbot and dependencies -RUN apt-get update && \ - apt-get install -y certbot python3-certbot-nginx && \ - apt-get clean && \ - rm -rf /var/lib/apt/lists/* - -# Create the necessary directories for Let's Encrypt challenges -RUN mkdir -p /usr/share/nginx/html/.well-known/acme-challenge \ - && chown -R www-data:www-data /usr/share/nginx/html/.well-known \ - && chmod -R 755 /usr/share/nginx/html/.well-known - # Remove default Nginx configuration files RUN rm /etc/nginx/nginx.conf RUN rm /etc/nginx/conf.d/default.conf # Copy your custom Nginx configuration COPY nginx.conf /etc/nginx/ -COPY project.conf /etc/nginx/conf.d/ - -# Copy SSL certificate renewal script -COPY renew-certs.sh /renew-certs.sh -RUN chmod +x /renew-certs.sh - -# Entrypoint to handle certificate issuance and renewal -ENTRYPOINT ["/renew-certs.sh"] \ No newline at end of file +COPY project.conf /etc/nginx/conf.d/ \ No newline at end of file