22 lines
No EOL
514 B
Django/Jinja
22 lines
No EOL
514 B
Django/Jinja
FROM wordpress:{{ wordpress.version }}-fpm
|
|
|
|
RUN apt-get update; \
|
|
apt-get install -y --no-install-recommends msmtp; \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN echo "sendmail_path = /usr/bin/msmtp -t " > /usr/local/etc/php/conf.d/sendmail.ini
|
|
|
|
# RUN "cat << EOF > /etc/msmtprc
|
|
# account default
|
|
# host {{ site.subnet_gateway_ip }}
|
|
# port 25
|
|
# EOF"
|
|
|
|
RUN echo "\
|
|
account default\n\
|
|
host {{ site.subnet_gateway_ip }}\n\
|
|
port 25\n\
|
|
from php@{{ site.url }}\n" > /etc/msmtprc
|
|
|
|
# Should be UID & GID=33
|
|
# USER www-data:www-data |