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

15 lines
310 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/*
RUN echo "sendmail_path = /usr/sbin/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