瀏覽代碼

Merge pull request #3210 from rc1021/patch-3

Solved undefined function imagecreatefromjpeg
Shao Yu-Lung (Allen) 2 年之前
父節點
當前提交
27cb551a9f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      php-worker/Dockerfile

+ 1 - 1
php-worker/Dockerfile

@@ -87,7 +87,7 @@ ARG INSTALL_GD=false
 RUN if [ ${INSTALL_GD} = true ]; then \
   apk add --update --no-cache freetype-dev libjpeg-turbo-dev jpeg-dev libpng-dev; \
   if [ $(php -r "echo PHP_MAJOR_VERSION;") = "7" ] && [ $(php -r "echo PHP_MINOR_VERSION;") = "4" ]; then \
-  docker-php-ext-configure gd --with-freetype --with-jpeg --with-png; \
+  docker-php-ext-configure gd --with-freetype --with-jpeg; \
   else \
   docker-php-ext-configure gd --with-freetype-dir=/usr/lib/ --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/; \
   fi; \