Member-only story

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

Jangwook Kim
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

--

--

Jangwook Kim
Jangwook Kim

Written by Jangwook Kim

Korean, live in Japan. The programmer. I love to learn something new things. I’m publishing my toy projects using GitHub. Visit https://www.jangwook.net.

No responses yet

Write a response