automation/ansible/roles/build/templates/Dockerfile.j2
2020-04-01 09:41:12 +02:00

19 lines
No EOL
439 B
Django/Jinja

FROM wordpress:apache
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 {{ item.subnet_gateway_ip }}
# port 25
# EOF"
RUN echo "\
account default\n\
host {{ item.subnet_gateway_ip }}\n\
port 25\n\
from php@{{ item.url }}" > /etc/msmtprc