Skip to content
Snippets Groups Projects
Commit e35e0fc1 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Adds ssmtp to nginx-php, closes #40

parent edaa552f
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ RUN apt-get update && apt-get install -y \
mysql-client \
php5-fpm \
php5-mysql \
ssmtp \
curl && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /etc/nginx/conf.d/* && \
......@@ -14,6 +15,7 @@ RUN apt-get update && apt-get install -y \
sed -i 's/access_log.*/access_log \/dev\/stdout;/g' /etc/nginx/nginx.conf && \
sed -i 's/error_log.*/error_log \/dev\/stdout info;/g' /etc/nginx/nginx.conf && \
sed -i 's/^pid/daemon off;\npid/g' /etc/nginx/nginx.conf && \
sed -i "s/.*sendmail_path.*/sendmail_path = \/usr\/sbin\/ssmtp -t/g" /etc/php5/fpm/php.ini && \
sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php5/fpm/php.ini
ADD basic.conf /etc/nginx/conf.d/basic.conf
......@@ -23,6 +25,8 @@ RUN chmod u+x /opt/entrypoint.sh
ADD mysql-check.sh /opt/mysql-check.sh
RUN chmod u+x /opt/mysql-check.sh
COPY ssmtp.conf /etc/ssmtp/ssmtp.conf
ADD environment /etc/environment
ENTRYPOINT ["/opt/entrypoint.sh"]
......
mailhub=172.17.42.1
root=postmaster
FromLineOverride=YES
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment