DEV Community

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

Posted on • Edited on • Originally published at sertxu.dev

5

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more