2020-03-31 11:49:28 +00:00
|
|
|
FROM wordpress:apache
|
|
|
|
|
|
|
|
RUN apt-get update; \
|
|
|
|
apt-get install -y --no-install-recommends msmtp; \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2020-04-01 07:41:12 +00:00
|
|
|
RUN echo "sendmail_path = /usr/bin/msmtp -t " > /usr/local/etc/php/conf.d/sendmail.ini
|
2020-03-31 11:49:28 +00:00
|
|
|
|
2020-04-01 07:41:12 +00:00
|
|
|
# RUN "cat << EOF > /etc/msmtprc
|
|
|
|
# account default
|
|
|
|
# host {{ item.subnet_gateway_ip }}
|
|
|
|
# port 25
|
|
|
|
# EOF"
|
2020-03-31 11:49:28 +00:00
|
|
|
|
2020-04-01 07:41:12 +00:00
|
|
|
RUN echo "\
|
|
|
|
account default\n\
|
|
|
|
host {{ item.subnet_gateway_ip }}\n\
|
|
|
|
port 25\n\
|
2020-04-27 10:23:53 +00:00
|
|
|
from php@{{ item.url }}\n" > /etc/msmtprc
|