[DOCKER] Small fixes to docker setup, imported from V2
This commit is contained in:
parent
bf88c97f4a
commit
1ce5661f70
@ -35,15 +35,15 @@ if [ ! -e "${lets_path}/live//options-ssl-nginx.conf" ] \
|
||||
echo "### Requesting Let's Encrypt certificate for $root_domain ..."
|
||||
# Format domain_args with the cartesian product of `root_domain` and `subdomains`
|
||||
|
||||
email_arg="--email $email"
|
||||
domain_arg="-d $domain"
|
||||
email_arg="--email ${email}"
|
||||
domain_arg=$([ "${domain_root}" = "${domain}" ] && printf "-d ${domain_root}" || printf "-d ${domain_root} -d ${domain}")
|
||||
|
||||
# Ask Let's Encrypt to create certificates, if challenge passed
|
||||
certbot certonly --webroot -w /var/www/certbot \
|
||||
$email_arg \
|
||||
$domain_arg \
|
||||
${email_arg} \
|
||||
${domain_arg} \
|
||||
--non-interactive \
|
||||
--rsa-key-size $rsa_key_size \
|
||||
--rsa-key-size ${rsa_key_size} \
|
||||
--agree-tos \
|
||||
--force-renewal
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
FROM php:fpm-alpine
|
||||
|
||||
RUN apk update && apk add gettext-dev icu-dev zlib-dev libpng-dev gmp-dev \
|
||||
postgresql-dev postgresql-client composer > /dev/null
|
||||
mariadb-dev mariadb-client postgresql-dev postgresql-client composer > /dev/null
|
||||
|
||||
ARG exts=" bcmath exif gd gettext gmp intl mysqli opcache pdo_mysql"
|
||||
ARG exts=" bcmath exif gd gettext gmp intl mysqli opcache pdo pdo_mysql mysqli pdo_pgsql pgsql"
|
||||
|
||||
RUN apk add --virtual .phpize-deps $PHPIZE_DEPS \
|
||||
&& rm -rf /usr/share/php7 \
|
||||
|
Loading…
Reference in New Issue
Block a user