From 07786c2ed689b83fa509e1357ae1318aee4113be Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Fri, 12 Nov 2021 16:41:09 +0000 Subject: [PATCH] Fix python-certbot-nginx becoming python3-certbot-nginx. Add preventative step just incase somehow /var/www isn't being created automatically, which was a symptom of nginx not installing correctly because of certbot missing. --- php/Dockerfile.Flavours | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php/Dockerfile.Flavours b/php/Dockerfile.Flavours index 9284a04..6e36b53 100644 --- a/php/Dockerfile.Flavours +++ b/php/Dockerfile.Flavours @@ -42,7 +42,7 @@ RUN apt-get -qq update && \ nginx \ php$PHP_VERSION-fpm \ certbot \ - python-certbot-nginx \ + python3-certbot-nginx \ && \ apt-get remove -yqq \ lsb-core \ @@ -75,6 +75,7 @@ RUN apt-get -qq update && \ mkdir -p /run/php && \ # Destroy default html root, and link /app in its place. rm -fr /var/www/html && \ + mkdir -p /var/www && \ ln -s /app /var/www/html && \ # Move nginx configuration into place mv /conf/NginxDefault /etc/nginx/sites-enabled/default && \