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:
parent
a31764f704
commit
07786c2ed6
1 changed files with 2 additions and 1 deletions
|
|
@ -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 && \
|
||||
|
|
|
|||
Loading…
Reference in a new issue