workaround pour paheko install gd avec dompdf

This commit is contained in:
nom 2025-03-12 08:46:50 +01:00
parent b28c04928b
commit e8fdead666

View File

@ -10,9 +10,12 @@ RUN mkdir ${PAHEKO_DIR}/users
#pour corriger le bug "export excel" #pour corriger le bug "export excel"
RUN docker-php-ext-install calendar RUN docker-php-ext-install calendar
RUN apt-get update #on écarte DomPDF avant l'install en raison d'une erreur "vous devez installer php gd"
RUN apt-get install -y libpng-dev RUN mv ${PAHEKO_DIR}/data/plugins/dompdf ${PAHEKO_DIR}/data/plugins/dompdf.sav
RUN docker-php-ext-install gd
#RUN apt-get update
#RUN apt-get install -y libpng-dev
#RUN docker-php-ext-install gd
#Plugin facturation (le seul qui ne fasse pas parti de la distribution de base #Plugin facturation (le seul qui ne fasse pas parti de la distribution de base
RUN apt-get install unzip RUN apt-get install unzip
@ -35,6 +38,9 @@ RUN ln -sf /usr/local/bin/php /usr/bin/
#outil pour debugger dans le docker #outil pour debugger dans le docker
RUN apt-get install -y inetutils-ping net-tools RUN apt-get install -y inetutils-ping net-tools
#on remet DomPDF dans le game
RUN mv ${PAHEKO_DIR}/data/plugins/dompdf.sav ${PAHEKO_DIR}/data/plugins/dompdf
# Set owner web server # Set owner web server
RUN chown -R www-data: ${PAHEKO_DIR} RUN chown -R www-data: ${PAHEKO_DIR}