From 4f2d900af7636e6744ae14aeeefdf2d6080ac50a Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Thu, 30 Mar 2023 05:03:23 +0300 Subject: several mail options tested; mailhog (fake) mailer is working --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 6c92eb8..85e4a32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,20 @@ FROM php:8.1-apache as builder # ARG MODE="PRODUCTION" ARG MODE="debug" + +# mailhog configuration +# ------------------------------------------------------------------------------ +# RUN apt-get update &&\ +# apt-get install --no-install-recommends --assume-yes --quiet ca-certificates curl git &&\ +# rm -rf /var/lib/apt/lists/* +# RUN curl -Lsf 'https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz' | tar -C '/usr/local' -xvzf - +# ENV PATH /usr/local/go/bin:$PATH +# RUN go get github.com/mailhog/mhsendmail +# RUN cp /root/go/bin/mhsendmail /usr/bin/mhsendmail +# RUN echo 'sendmail_path = /usr/bin/mhsendmail --smtp-addr mailhog:1025' > /usr/local/etc/php/php.ini + + + # setup apache # ------------------------------------------------------------------------------ -- cgit v1.2.3