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.
This commit is contained in:
Greyscale 2021-11-12 16:41:09 +00:00
parent a31764f704
commit 07786c2ed6

View file

@ -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 && \