docker-entrypoint.sh conditional check prevents extension of CMD #723
Replies: 1 comment 2 replies
-
The intention is that the copied WordPress install lives in a persistent volume (especially so that WordPress itself can do automatic security updates, for example). Is there a reason you're not including your volume in the cron container? Without it, anything that might change I'm also very suspect of running |
Beta Was this translation helpful? Give feedback.
-
We recently encountered an issue with this image where we wanted to run supervisord to run CRON and sshd on the same image.
High level description
The entire entrypoint script is dependent on
apache2*
andphp-fpm*
commands being called in the CMD directive in the Dockerfile. Given the nature of docker and it's default of extensibility, any command passed to CMD effectively causes the entrypoint to not execute, breaking the image as WordPress install files do not get copied over.Possible fixes or suggestions
There are a couple of approaches
Beta Was this translation helpful? Give feedback.
All reactions