Install GD in a PHP Docker image

Published at 27 Sep 2024 ·

In order to install the GD extension in a Docker image, you should add the following instruction to you Dockerfile.

RUN set -eux; \
	  docker-php-ext-configure gd --with-freetype --with-jpeg; \
    docker-php-ext-install exif gd