From 527a053fcaf1879cddb653034297a1b9b4f42b69 Mon Sep 17 00:00:00 2001 From: fixdocker <68359629+fixdocker@users.noreply.github.com> Date: Fri, 17 Jul 2020 10:56:55 -0300 Subject: [PATCH] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 61f7942..347afb6 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM php:5.6-apache -RUN apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng12-dev && docker-php-ext-install -j$(nproc) iconv mcrypt && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && docker-php-ext-install -j$(nproc) gd mysql mysqli pdo_mysql && rm -rf /var/www/html && mkdir /var/www/public && sed -i 's/\/var\/www\/html/\/var\/www\/public/' /etc/apache2/sites-available/default-ssl.conf && sed -i 's/\/var\/www\/html/\/var\/www\/public/' /etc/apache2/sites-available/000-default.conf && chown -R www-data:www-data /var/www/public && cp /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/ +RUN apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev && docker-php-ext-install -j$(nproc) iconv mcrypt && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && docker-php-ext-install -j$(nproc) gd mysql mysqli pdo_mysql && rm -rf /var/www/html && mkdir /var/www/public && sed -i 's/\/var\/www\/html/\/var\/www\/public/' /etc/apache2/sites-available/default-ssl.conf && sed -i 's/\/var\/www\/html/\/var\/www\/public/' /etc/apache2/sites-available/000-default.conf && chown -R www-data:www-data /var/www/public && cp /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/ VOLUME ["/var/www"]