Skip to content

Commit 7370563

Browse files
fix: add missing sendmail path to PHP Dockerfile (#13)
1 parent 1a95f73 commit 7370563

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

php/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ RUN apk del .build-deps .phpize-deps \
5555
# Set recommended PHP.ini settings and configure error logging
5656
COPY error-logging.ini expose.ini /usr/local/etc/php/conf.d/
5757

58+
# Configure sendmail path for MSMTP
59+
RUN echo "sendmail_path = '/usr/bin/msmtp -t'" > /usr/local/etc/php/conf.d/mail.ini
60+
5861
# Copy Composer and WP-CLI from their respective stages
5962
COPY --from=composer_builder /usr/local/bin/composer /usr/local/bin/composer
6063
COPY --from=wpcli_builder /usr/local/bin/wp /usr/local/bin/wp

0 commit comments

Comments
 (0)