-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwordpress.Dockerfile
More file actions
23 lines (19 loc) · 1.05 KB
/
wordpress.Dockerfile
File metadata and controls
23 lines (19 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# wordpress.Dockerfile - Create docker container quote_wp_wordpress
#
# GPLv3 License, Copyright (c) 2023 - 2024 Heiko Lübbe
# WordPress-plugin random-quote-zitat-service, see https://github.com/muhme/quote_wordpress
#
# Use the latest default WordPress Docker image
# FROM wordpress
# 28 December 2025: The current WordPress version is 6.9 and we would like to test PHP 8.5
FROM wordpress:6.9-php8.5-apache
# Use MSMTP as sendmail compatible SMTP client and deliver emails to maildev:1025
RUN apt-get update -qq && apt-get upgrade -yqq && apt-get install -y msmtp
RUN echo "host maildev\nport 1025" > /etc/msmtprc
RUN echo "sendmail_path = /usr/bin/msmtp -t --read-envelope-from" > /usr/local/etc/php/php.ini
# Plugin as 'must-use' to set from-mail-address "webmaster@docker.local" to prevent not usable "wordpress@localhost"
RUN mkdir -p /var/www/html/wp-content/mu-plugins
COPY misc/sets_mail_from.php /var/www/html/wp-content/mu-plugins/sets_mail_from.php
# Install gettext for I18N, vim and ping for comfort
RUN apt-get install -y gettext iputils-ping vim