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)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay