Merge pull request #3301 from dairidong/fix-php-fpm-imagemagick-install

fix sometimes cannot find dependencies
This commit is contained in:
Dawid Makowski
2023-08-16 13:02:52 +02:00
committed by GitHub

View File

@@ -804,6 +804,7 @@ ARG IMAGEMAGICK_VERSION=latest
ENV IMAGEMAGICK_VERSION ${IMAGEMAGICK_VERSION}
RUN if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
apt-get update && \
apt-get install -yqq libmagickwand-dev imagemagick && \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
cd /tmp && \