diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-30 05:03:23 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-03-30 05:03:23 +0300 |
| commit | 4f2d900af7636e6744ae14aeeefdf2d6080ac50a (patch) | |
| tree | 1f80775437510591656e6ef13375516226ed27f3 /Dockerfile | |
| parent | a16d070c4f8301a8b68220aca6d3573705be9025 (diff) | |
| download | classroom-4f2d900af7636e6744ae14aeeefdf2d6080ac50a.tar.gz classroom-4f2d900af7636e6744ae14aeeefdf2d6080ac50a.tar.bz2 classroom-4f2d900af7636e6744ae14aeeefdf2d6080ac50a.zip | |
several mail options tested; mailhog (fake) mailer is working
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 # ------------------------------------------------------------------------------ |
