Member-only story
[Troubleshooting][Docker]Call to undefined function exif_imagetype()
1 min readMar 30, 2020
When we met an error on docker container, we had to search how to solve that trouble through the Dockerfile.
This is troubleshooting history to solve exif_imagetype()
function error.
FROM php:5.6-apacheRUN set -xe; \
apt-get update -yqq \
&& apt-get install -yqq --no-install-recommends \
libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev \
&& docker-php-ext-configure gd \
--with-freetype-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd exif