Dockerfile: ajoute libicu-dev + extension intl
L'extension PHP intl nécessite la bibliothèque système libicu-dev, absente jusqu'ici (échec du build: icu-uc not found). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -1,14 +1,15 @@
|
|||||||
FROM php:8.2-fpm
|
FROM php:8.2-fpm
|
||||||
|
|
||||||
# Installation des dépendances système
|
# Installation des dépendances système
|
||||||
|
# libicu-dev est requis pour l'extension PHP intl.
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
git curl libpng-dev libonig-dev libxml2-dev zip unzip
|
git curl libpng-dev libonig-dev libxml2-dev libicu-dev zip unzip
|
||||||
|
|
||||||
# Nettoyage du cache
|
# Nettoyage du cache
|
||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Installation des extensions PHP pour Laravel et MySQL
|
# Installation des extensions PHP pour Laravel et MySQL
|
||||||
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
|
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd intl
|
||||||
|
|
||||||
# Récupération de Composer
|
# Récupération de Composer
|
||||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||||
|
|||||||
Reference in New Issue
Block a user