automation/ansible/roles/build/templates/wordpress/Dockerfile.j2

19 lines
441 B
Text
Raw Normal View History

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-04-01 07:41:12 +00:00
# RUN "cat << EOF > /etc/msmtprc
# account default
# host {{ item.subnet_gateway_ip }}
# port 25
# EOF"
2020-04-01 07:41:12 +00:00
RUN echo "\
account default\n\
host {{ item.subnet_gateway_ip }}\n\
port 25\n\
from php@{{ item.url }}\n" > /etc/msmtprc