How to install ImageMagick and run it from PHP?

Hi. I’m new to Docker and I’m struggling to make a PHP script run any ImageMagick command (like “convert”). It needs to be an executable (not a PHP extension), because it’s used that way in the application I want to move to Docker.

I’m not sure whether I should have 2 separate containers for ImageMagick and PHP. Any ideas?

I appreciate any suggestions you have.

Thanks.