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

22 lines
514 B
Text
Raw Normal View History

2020-05-01 13:40:16 +00:00
FROM wordpress:{{ wordpress.version }}-fpm
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\
2020-05-01 13:40:16 +00:00
from php@{{ item.url }}\n" > /etc/msmtprc
# Should be UID & GID=33
# USER www-data:www-data