Merge pull request #3210 from rc1021/patch-3
Solved undefined function imagecreatefromjpeg
This commit is contained in:
commit
27cb551a9f
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user