Разделение конфигов php, мелочи по compose.yml

This commit is contained in:
2025-03-15 20:56:18 +08:00
parent 1b055797d6
commit 31fa1a0f5a
7 changed files with 47 additions and 29 deletions

21
docker/php/dev/dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM php:8.3-fpm
RUN apt update && \
apt upgrade -y && \
apt install -y git unzip 7zip
# https://pecl.php.net/package/xdebug
# https://pecl.php.net/package/redis
RUN pecl channel-update pecl.php.net && \
pecl install xdebug-3.4.1 redis && \
docker-php-ext-enable redis && \
mkdir -p /var/run/php && \
mkdir -p /var/log/php && \
chmod -R 777 /var/log/php
COPY --from=composer /usr/bin/composer /usr/local/bin/composer
EXPOSE 9000
WORKDIR /var/www
CMD composer install
ENTRYPOINT php-fpm