Commit 3576c2d5 authored by Manuel Christlieb's avatar Manuel Christlieb

fix(): Ultimately remove ssmtp because it is not maintained anymore. We have to switch to msmtp

parent 3c5cca83
Pipeline #28310 passed with stage
in 7 minutes and 10 seconds
......@@ -7,8 +7,6 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# pool configuration
COPY shared/zz-www.conf /usr/local/etc/php-fpm.d/
# Add backports to sources.list
RUN echo "deb buster-backports main" >> /etc/apt/sources.list
# Install packages with clean up
RUN set -ex; \
......@@ -21,7 +19,6 @@ RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends ${build_dependencies}; \
apt-get install -y ${install_packages}; \
apt-get -t buster-backports install -y ssmtp; \
pecl install xdebug redis imagick mongodb; \
docker-php-ext-enable imagick; \
docker-php-ext-enable redis; \
......@@ -60,8 +57,9 @@ RUN composer global require hirak/prestissimo
RUN curl -LO && 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
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
# 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
# Enable our own entrypoint which can be used to install/enable xdebug using env variables
COPY shared/ shared/ /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