From 98ee8550b11e2b4c1e70b5a801ce1834a41a09b6 Mon Sep 17 00:00:00 2001 From: chris Date: Wed, 7 Feb 2024 20:15:37 +0100 Subject: [PATCH] Install docker zip and gd. --- Dockerfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 32cb0dc..6ba074f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,18 @@ FROM php:7.2-apache-buster RUN docker-php-ext-install mysqli +RUN apt-get update -y && apt-get install -y libwebp-dev libjpeg62-turbo-dev libpng-dev libxpm-dev libfreetype6-dev zlib1g-dev libzip-dev + +RUN docker-php-ext-install zip + +RUN docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir \ + --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir \ + --enable-gd-native-ttf + +RUN docker-php-ext-install gd + VOLUME /var/www/html/media -COPY . /var/www/html \ No newline at end of file +COPY . /var/www/html + +RUN chown -R www-data:www-data /var/www/html \ No newline at end of file