From 83c59ea871e5ba31a80b42956cd21ef28be5c64b Mon Sep 17 00:00:00 2001 From: SuperDev Date: Mon, 19 Dec 2022 11:13:55 -0600 Subject: [PATCH] Update dockerfile --- dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dockerfile b/dockerfile index 5b1a0d9..ab44d68 100644 --- a/dockerfile +++ b/dockerfile @@ -1,6 +1,11 @@ FROM php:7.4-apache COPY . /var/www/html RUN docker-php-ext-install pdo_mysql -RUN docker-php-ext-install zlib -RUN docker-php-ext-install gd +apt-get install -y --no-install-recommends \ + libfreetype6-dev \ + libjpeg62-turbo-dev \ + libpng-dev \ + && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ + --with-png-dir=/usr/include/ --enable-gd-native-ttf \ + && docker-php-ext-install -j$(nproc) gd CMD ["apache2ctl", "-D", "FOREGROUND"]