2020-05-01 15:40:16 +02:00
|
|
|
FROM wordpress:{{ wordpress.version }}-fpm
|
2020-03-31 13:49:28 +02:00
|
|
|
|
|
|
|
RUN apt-get update; \
|
|
|
|
apt-get install -y --no-install-recommends msmtp; \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2020-04-01 09:41:12 +02:00
|
|
|
RUN echo "sendmail_path = /usr/bin/msmtp -t " > /usr/local/etc/php/conf.d/sendmail.ini
|
2020-03-31 13:49:28 +02:00
|
|
|
|
2020-04-01 09:41:12 +02:00
|
|
|
# RUN "cat << EOF > /etc/msmtprc
|
|
|
|
# account default
|
2020-05-06 12:11:46 +02:00
|
|
|
# host {{ site.subnet_gateway_ip }}
|
2020-04-01 09:41:12 +02:00
|
|
|
# port 25
|
|
|
|
# EOF"
|
2020-03-31 13:49:28 +02:00
|
|
|
|
2020-04-01 09:41:12 +02:00
|
|
|
RUN echo "\
|
|
|
|
account default\n\
|
2020-05-06 12:11:46 +02:00
|
|
|
host {{ site.subnet_gateway_ip }}\n\
|
2020-04-01 09:41:12 +02:00
|
|
|
port 25\n\
|
2020-05-06 12:11:46 +02:00
|
|
|
from php@{{ site.url }}\n" > /etc/msmtprc
|
2020-05-01 15:40:16 +02:00
|
|
|
|
|
|
|
# Should be UID & GID=33
|
|
|
|
# USER www-data:www-data
|