-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 708 Bytes
/
Dockerfile
File metadata and controls
27 lines (18 loc) · 708 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
FROM php:8.4-fpm
RUN apt-get update \
&& apt-get -y install libzip-dev zlib1g-dev git zip unzip libicu-dev \
&& apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* \
RUN docker-php-ext-configure zip && docker-php-ext-install zip intl
# Install Xdebug only
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
# Optional: Add Xdebug config (adjust path if needed)
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Set working directory
WORKDIR /var/www
RUN chown -R www-data:www-data /var/www
# Expose port 9000 and start php-fpm server
EXPOSE 9000
CMD ["php-fpm"]