Browse Source

Added back msmtp for email sending + changed FROM image

ronny 3 years ago
parent
commit
82e5315a33
1 changed files with 3 additions and 1 deletions
  1. 3 1
      php7/Dockerfile

+ 3 - 1
php7/Dockerfile

@@ -2,7 +2,7 @@
 #
 # VERSION 0.1
 
-FROM 	alpine:latest
+FROM 	ronnicek/alpine:latest
 
 # Create user + group & Base packages
 RUN 	addgroup -g 6662 php && adduser -u 6662 -H -s /sbin/nologin -G php -D php && \
@@ -44,6 +44,7 @@ RUN 	addgroup -g 6662 php && adduser -u 6662 -H -s /sbin/nologin -G php -D php &
 											php7-fpm \
 											php7-fileinfo \
 											php7 \
+											msmtp \
 											php7-intl \
 											php7-posix && \
 											rm -rf /var/cache/apk/*
@@ -68,6 +69,7 @@ RUN set -xe && \
 	echo 'opcache.enable_cli=1' >> /etc/php7/conf.d/opcache-recommended.ini && \
 	echo 'opcache.enable=1' >> /etc/php7/conf.d/opcache-recommended.ini && \
 	echo 'opcache.save_comments=1' >> /etc/php7/conf.d/opcache-recommended.ini
+	echo 'sendmail_path = "/usr/bin/msmtp -t -i"' >> /etc/php7/conf.d/mail.ini
 
 USER php