summaryrefslogtreecommitdiff
path: root/build/web/Dockerfile
diff options
context:
space:
mode:
authorNaoaki Ueda <nao@uedder.com>2022-09-04 18:23:17 +0900
committerNaoaki Ueda <nao@uedder.com>2022-09-04 18:23:17 +0900
commit372de06b4363d38d92c503cc96103b6a879c2820 (patch)
tree8114a32239e3ad98d53284d31fc6ff7f6b2b27d2 /build/web/Dockerfile
downloadwordpress-dev-372de06b4363d38d92c503cc96103b6a879c2820.tar.gz
wordpress-dev-372de06b4363d38d92c503cc96103b6a879c2820.tar.bz2
wordpress-dev-372de06b4363d38d92c503cc96103b6a879c2820.zip
Initial commit
Diffstat (limited to 'build/web/Dockerfile')
-rw-r--r--build/web/Dockerfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/web/Dockerfile b/build/web/Dockerfile
new file mode 100644
index 0000000..d4dc1c2
--- /dev/null
+++ b/build/web/Dockerfile
@@ -0,0 +1,7 @@
+ARG WP_IMAGE_TAG=latest
+FROM docker.io/library/wordpress:${WP_IMAGE_TAG}
+
+# Install mhsendmail
+RUN curl -sS https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 -L -o /usr/local/bin/mhsendmail \
+ && chmod +x /usr/local/bin/mhsendmail \
+ && echo 'sendmail_path = "/usr/local/bin/mhsendmail --smtp-addr=127.0.0.1:1025"' > /usr/local/etc/php/conf.d/sendmail.ini