How to add php gd extension to Dockerfile
问题 I'm getting this error when trying to deploy using alpine: phpoffice/phpspreadsheet 1.2.1 requires ext-gd * -> the requested PHP extension gd is missing from your system. Here's my Dockerfile: FROM php:7.2-alpine RUN apk update RUN apk add zlib-dev gd php7-gd RUN docker-php-ext-install sockets pdo_mysql zip RUN apk add --no-cache libpng libpng-dev && docker-php-ext-install gd The error is an output from a jenkins run. I think it's failing somewhere around here... build: docker run --rm --tty