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