-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (29 loc) · 938 Bytes
/
Copy pathDockerfile
File metadata and controls
34 lines (29 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM php:8.5-apache
# Install required system packages and PHP extensions
RUN apt-get update && apt-get install -y \
libonig-dev \
libzip-dev \
libicu-dev \
libpq-dev \
libxml2-dev \
libpng-dev \
libjpeg-dev \
libwebp-dev \
libfreetype6-dev \
unzip \
git \
nodejs \
postgresql-client \
default-mysql-client \
&& docker-php-ext-configure intl \
&& docker-php-ext-configure gd --with-jpeg --with-webp --with-freetype \
&& docker-php-ext-install mysqli pdo_mysql pdo_pgsql pgsql mbstring zip intl bcmath gd ftp pcntl \
&& pecl install redis xdebug \
&& docker-php-ext-enable redis xdebug
# Enable Apache mod_rewrite
RUN a2enmod rewrite
# Configure Xdebug for coverage
RUN echo "xdebug.mode=coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /var/www/html