DEV Community

Cover image for Install GD in a PHP Docker image
Sergio Peris
Sergio Peris

Posted on • Originally published at sertxu.dev

Install GD in a PHP Docker image

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
Enter fullscreen mode Exit fullscreen mode

Top comments (0)