mirror of
https://github.com/tips-of-mine/gestion-certificats2.git
synced 2025-06-28 13:58:42 +02:00
Modernisation du projet Gestion Certificat
This commit is contained in:
39
php/Dockerfile.dev
Normal file
39
php/Dockerfile.dev
Normal file
@ -0,0 +1,39 @@
|
||||
FROM php:8.3-fpm
|
||||
|
||||
# Installer les dépendances système
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
libpng-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
libfreetype6-dev \
|
||||
locales \
|
||||
zip \
|
||||
jpegoptim optipng pngquant gifsicle \
|
||||
vim \
|
||||
unzip \
|
||||
git \
|
||||
curl \
|
||||
libzip-dev \
|
||||
libonig-dev \
|
||||
mysql-common \
|
||||
libldap2-dev \
|
||||
libicu-dev \
|
||||
openssl \
|
||||
ca-certificates
|
||||
|
||||
# Installer les extensions PHP
|
||||
RUN docker-php-ext-install pdo_mysql opcache zip intl
|
||||
|
||||
# Configuration PHP pour le développement
|
||||
COPY php.dev.ini /usr/local/etc/php/conf.d/40-custom.ini
|
||||
|
||||
# Installer Composer
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
# Installer Xdebug pour le développement
|
||||
RUN pecl install xdebug \
|
||||
&& docker-php-ext-enable xdebug
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
EXPOSE 9000
|
Reference in New Issue
Block a user