diff --git a/Dockerfile b/Dockerfile index 949da4d..482f087 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM php:7.4-apache +FROM php:8.0-apache MAINTAINER Webgriffe Srl # Install GD @@ -10,7 +10,7 @@ RUN apt-get update \ # Install MCrypt RUN apt-get update \ && apt-get install -y libmcrypt-dev \ - && pecl install mcrypt-1.0.3 \ + && pecl install mcrypt-1.0.4 \ && docker-php-ext-enable mcrypt # Install Intl @@ -67,6 +67,9 @@ ENV PHP_TIMEZONE Europe/Rome # Configure Apache Document Root ENV APACHE_DOC_ROOT /var/www/html +# Configure Apache ServerName +ENV APACHE_SERVER_NAME localhost + # Enable Apache mod_rewrite RUN a2enmod rewrite @@ -82,6 +85,12 @@ RUN apt-get update \ && echo "FromLineOverride=YES" >> /etc/ssmtp/ssmtp.conf \ && echo 'sendmail_path = "/usr/sbin/ssmtp -t"' > /usr/local/etc/php/conf.d/mail.ini +# Install imap +RUN apt-get update \ + && apt-get install -y libc-client-dev libkrb5-dev \ + && docker-php-ext-configure imap --with-kerberos --with-imap-ssl \ + && docker-php-ext-install imap + # Install MySQL CLI Client RUN apt-get update \ && apt-get install -y default-mysql-client diff --git a/start b/start index c4e7a29..8766238 100755 --- a/start +++ b/start @@ -15,6 +15,11 @@ echo " Require all granted" >> /etc/apache2/conf-available/document-root-directo echo "" >> /etc/apache2/conf-available/document-root-directory.conf a2enconf "document-root-directory.conf" +# Set ServerName Directive +echo "ServerName $APACHE_SERVER_NAME" > /etc/apache2/conf-available/server-name.conf +a2enconf "server-name.conf" + + # Enable XDebug if needed if [ "$XDEBUG_ENABLE" = "1" ]; then docker-php-ext-enable xdebug