Commit 38184411 authored by Manuel Christlieb's avatar Manuel Christlieb

Install and configure msmtp in the 7.4 image

parent 31269073
Pipeline #31099 failed with stage
in 7 minutes and 58 seconds
......@@ -14,7 +14,7 @@ RUN set -ex; \
libjpeg-dev libpng-dev libpq-dev libjpeg62-turbo-dev libxml2-dev \
libxslt1-dev libfreetype6-dev libmagickwand-dev"; \
install_packages="acl cron gifsicle git imagemagick graphicsmagick gsfonts jpegoptim libjpeg-turbo-progs libpq5 \
libbz2-dev libonig-dev libsodium-dev libxml2 libxslt1.1 libzip-dev mariadb-client nano patch \
libbz2-dev libonig-dev libsodium-dev libxml2 libxslt1.1 libzip-dev mariadb-client msmtp nano patch \
pkg-config procps openssl openssh-client optipng rsync sudo unzip vim webp zip"; \
apt-get update; \
apt-get install -y --no-install-recommends ${build_dependencies}; \
......@@ -56,10 +56,13 @@ RUN composer global require hirak/prestissimo
# Install deployer
RUN curl -LO https://deployer.org/deployer.phar && mv deployer.phar /usr/local/bin/dep && chmod +x /usr/local/bin/dep
# Configure ssmtp to use mail:1025 as a smtp server and php to use ssmtp as sendmail_path
# Actually there is no installation candidate for buster...
#RUN echo "mailhub=mail:1025\nUseTLS=NO\nFromLineOverride=YES" > /etc/ssmtp/ssmtp.conf && \
# echo "sendmail_path = /usr/sbin/ssmtp -t" > /usr/local/etc/php/conf.d/sendmail.ini
# Configure msmtp to use mail:1025 as a smtp server and php to use msmtp as sendmail_path
RUN echo "account default \n \
host mail \n \
from \"test@mail.de\" \n \
port 1025" >> /etc/msmtprc
RUN chmod 600 /etc/msmtprc
RUN echo "sendmail_path = /usr/bin/msmtp -t" > /usr/local/etc/php/conf.d/sendmail.ini
# Enable our own entrypoint which can be used to install/enable xdebug using env variables
COPY shared/team23-docker-php-enable-xdebug.sh shared/team23-docker-php-entrypoint.sh /usr/local/bin/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment