gpt4 book ai didi

wordpress - 如何在docker-entrypoint.sh文件中添加wordpress插件

转载 作者:行者123 更新时间:2023-12-02 20:10:13 27 4
gpt4 key购买 nike

我已经研究过在WordPress docker镜像中添加WordPress插件,因为在研究中我发现可以在docker-entrypoint.sh文件中添加自定义插件。但是我无法在入口点文件中添加自定义插件。是否有解决此问题的方法。

最佳答案

docker-library/wordpress 图像确实包含 wordpress/docker-entrypoint.sh 脚本。

但是,the README points out:

This image does not provide any additional PHP extensions or other libraries, even if they are required by popular plugins.
There are an infinite number of possible plugins, and they potentially require any extension PHP supports. Including every PHP extension that exists would dramatically increase the image size.



因此,当您说“我无法在入口点文件中添加自定义插件”时,它实际上取决于您遇到的错误。

If you need additional PHP extensions, you'll need to create your own image FROM this one. The documentation of the php image explains how to compile additional extensions.
Additionally, the wordpress Dockerfile has an example of doing this.

关于wordpress - 如何在docker-entrypoint.sh文件中添加wordpress插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47088966/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com