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 \
|
nginx \
|
||||||
php$PHP_VERSION-fpm \
|
php$PHP_VERSION-fpm \
|
||||||
certbot \
|
certbot \
|
||||||
python-certbot-nginx \
|
python3-certbot-nginx \
|
||||||
&& \
|
&& \
|
||||||
apt-get remove -yqq \
|
apt-get remove -yqq \
|
||||||
lsb-core \
|
lsb-core \
|
||||||
|
|
@ -75,6 +75,7 @@ RUN apt-get -qq update && \
|
||||||
mkdir -p /run/php && \
|
mkdir -p /run/php && \
|
||||||
# Destroy default html root, and link /app in its place.
|
# Destroy default html root, and link /app in its place.
|
||||||
rm -fr /var/www/html && \
|
rm -fr /var/www/html && \
|
||||||
|
mkdir -p /var/www && \
|
||||||
ln -s /app /var/www/html && \
|
ln -s /app /var/www/html && \
|
||||||
# Move nginx configuration into place
|
# Move nginx configuration into place
|
||||||
mv /conf/NginxDefault /etc/nginx/sites-enabled/default && \
|
mv /conf/NginxDefault /etc/nginx/sites-enabled/default && \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue