Wordpress-Image: choice of WP version with multistage build #207
Replies: 2 comments 4 replies
-
Hi @designzwang Thank you for trusting and using my Docker images for your WordPress projects. I think it’s great that you’re able to freely customize the WordPress environment to suit your specific needs. I don’t have any particular comments, as I think your setup is already excellent since it’s working as expected. If I may suggest, consider running the Best regards! |
Beta Was this translation helpful? Give feedback.
-
Thank you @shinsenter for checking my suggestion, and doing it so quickly. So I will try this with a small site in production and see how it works, and how we can deal with the combined output of FPM and Apache. Regarding alpine - that might certainly be a good way to trim down the image, so I will check whether everything we need is in there. Using Debian just feels comfortable ;) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I like having a combined Apache-FPM image for wordpress, so I want to use your very useful pre-build wordpress image(s) .
However we need to be able to not only chose the PHP version, but also use different WP versions, and we need to enable additional modules for php and install some additional tools.
My plan is to use a multistage build with the original Wordpress images as a source and copy the WP files from the official image into /var/www/html of your FPM image.
That way, we will have an image that already has the desired php and wordpress version , and then we have the choice, depending on the project, to either use the provided version of the image or mount a project specific tree into /var/www/html.
On first sight it works fine - or do you see any problems when we do this?
The dockerfile is attached below.
Regards,
Uli
Beta Was this translation helpful? Give feedback.
All reactions