automation/deployer/roles/build/templates/drupal/Dockerfile.j2
2020-08-21 11:18:17 +02:00

13 lines
348 B
Django/Jinja

FROM drupal:{{ drupal.version }}
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 echo "\
account default\n\
host {{ site.subnet_gateway_ip }}\n\
port 25\n\
from php@{{ site.url }}\n" > /etc/msmtprc