ajout code de déploiement

This commit is contained in:
2026-03-25 22:38:25 +01:00
parent a7ac890c17
commit 124fd240ae
2 changed files with 43 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
FROM php:8.2-fpm
# Installation des dépendances système
RUN apt-get update && apt-get install -y \
git curl libpng-dev libonig-dev libxml2-dev zip unzip
# Nettoyage du cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Installation des extensions PHP pour Laravel et MySQL
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
# Récupération de Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Dossier de travail
WORKDIR /var/www
COPY . .
# Installation des dépendances Laravel
RUN composer install --no-interaction --optimize-autoloader --no-dev
# Permissions pour le stockage Laravel
RUN chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache
EXPOSE 9000
CMD ["php-fpm"]