Ajout de GD (TCPDF, QR codes) + script relancer.sh de reconstruction du conteneur
This commit is contained in:
+7
-1
@@ -1,5 +1,11 @@
|
||||
FROM php:8.2-apache
|
||||
RUN docker-php-ext-install mysqli pdo pdo_mysql
|
||||
# GD : nécessaire à TCPDF pour les PNG avec canal alpha (logo) et à la génération des QR codes
|
||||
# (invitations SM, lot 1 - synthèse §47).
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends libpng-dev libjpeg62-turbo-dev libfreetype6-dev \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install mysqli pdo pdo_mysql gd \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN a2enmod rewrite
|
||||
RUN a2enmod headers
|
||||
RUN sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
|
||||
|
||||
Reference in New Issue
Block a user