From 30897a4f639b816f75a2ef54537a6c2121dade32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9r=C3=B4me=20Canals?= <gerome.canals@univ-lorraine.fr> Date: Thu, 30 Nov 2023 12:16:53 +0100 Subject: [PATCH] 8.2-ext from 8.2 --- php/8.2-ext/Dockerfile | 46 +++++++++--------------------------------- 1 file changed, 10 insertions(+), 36 deletions(-) diff --git a/php/8.2-ext/Dockerfile b/php/8.2-ext/Dockerfile index 486c65e..aa35aae 100644 --- a/php/8.2-ext/Dockerfile +++ b/php/8.2-ext/Dockerfile @@ -1,52 +1,26 @@ # Use an official PHP runtime as a base image -FROM php:8.2-apache +FROM canals/php:8.2 RUN apt-get update && \ apt-get install --yes --force-yes \ - cron g++ gettext libicu-dev openssl \ - libc-client-dev libkrb5-dev \ + libkrb5-dev \ libxml2-dev libfreetype6-dev \ libgd-dev libmcrypt-dev bzip2 \ - libbz2-dev libtidy-dev libcurl4-openssl-dev \ - libz-dev libmemcached-dev libxslt-dev git-core libpq-dev \ - libzip4 libzip-dev libwebp-dev + libbz2-dev libxslt-dev # PHP Configuration -RUN docker-php-ext-install bcmath bz2 calendar dba exif gettext iconv intl soap tidy xsl zip sockets &&\ - docker-php-ext-install mysqli pgsql pdo pdo_mysql pdo_pgsql &&\ - docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp &&\ - docker-php-ext-install gd &&\ - docker-php-ext-configure imap --with-kerberos --with-imap-ssl &&\ - docker-php-ext-install imap &&\ - docker-php-ext-configure hash --with-mhash &&\ - pecl install xdebug && docker-php-ext-enable xdebug &&\ - echo "xdebug.mode=debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini &&\ - echo "xdebug.client_host = host.docker.internal" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini &&\ - pecl install mongodb && docker-php-ext-enable mongodb &&\ - pecl install redis && docker-php-ext-enable redis && \ - curl -sS https://getcomposer.org/installer | php \ - && mv composer.phar /usr/bin/composer +RUN docker-php-ext-install bcmath bz2 calendar dba exif soap xsl +RUN docker-php-ext-install pdo-oci +RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp &&\ + docker-php-ext-install gd +RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl &&\ + docker-php-ext-install imap +RUN docker-php-ext-configure hash --with-mhash &&\ -# Apache Configuration -RUN a2enmod rewrite - -# SSL -RUN mv /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-available/000-default-ssl.conf &&\ - a2enmod ssl && \ - a2ensite 000-default-ssl &&\ - openssl req -subj '/CN=example.com/O=My Company Name LTD./C=US' -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout /etc/ssl/private/ssl-cert-snakeoil.key -out /etc/ssl/certs/ssl-cert-snakeoil.pem - -EXPOSE 80 -EXPOSE 443 # Imagemagick : install fails on 8.0 RUN apt-get install --yes --force-yes libmagickwand-dev libmagickcore-dev RUN yes '' | pecl install -f imagick &&\ docker-php-ext-enable imagick -COPY create_vhost config-vhost start /usr/local/bin/ -COPY php.ini /usr/local/etc/php/ - - -CMD ["start"] \ No newline at end of file -- GitLab