[Troubleshooting][Docker]Call to undefined function exif_imagetype()

Jangwook Kim
Mar 30 · 1 min read

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

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store