fix sometimes cannot find dependencies

This commit is contained in:
戴日东
2022-11-23 16:57:40 +08:00
parent f5f389331a
commit 3695a85310

View File

@@ -788,6 +788,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 && \