Upgrade PHP Mailer as docker build fails trying to download the current version.

This commit is contained in:
Brian Lycett 2022-04-29 09:16:16 +01:00
parent ec4e430112
commit 1db9635bf1

View File

@ -14,7 +14,7 @@ RUN docker-php-ext-configure gd --with-freetype && \
docker-php-ext-configure ldap --with-libdir=$libdir && \ docker-php-ext-configure ldap --with-libdir=$libdir && \
docker-php-ext-install -j$(nproc) ldap docker-php-ext-install -j$(nproc) ldap
ADD https://github.com/PHPMailer/PHPMailer/archive/v6.2.0.tar.gz /tmp ADD https://github.com/PHPMailer/PHPMailer/archive/refs/tags/v6.3.0.tar.gz /tmp
RUN a2enmod rewrite ssl && a2dissite 000-default default-ssl RUN a2enmod rewrite ssl && a2dissite 000-default default-ssl
@ -22,7 +22,7 @@ EXPOSE 80
EXPOSE 443 EXPOSE 443
COPY www/ /opt/ldap_user_manager COPY www/ /opt/ldap_user_manager
RUN tar -xzf /tmp/v6.2.0.tar.gz -C /opt && mv /opt/PHPMailer-6.2.0 /opt/PHPMailer RUN tar -xzf /tmp/v6.3.0.tar.gz -C /opt && mv /opt/PHPMailer-6.3.0 /opt/PHPMailer
COPY entrypoint /usr/local/bin/entrypoint COPY entrypoint /usr/local/bin/entrypoint
RUN chmod a+x /usr/local/bin/entrypoint RUN chmod a+x /usr/local/bin/entrypoint