+ php82 src image

This commit is contained in:
2024-04-15 16:55:28 +03:00
parent 5dcd3a131c
commit 32b98ae170
5 changed files with 42 additions and 2 deletions

View File

@ -19,6 +19,12 @@ services:
service: php-fpm
build:
dockerfile: php81.Dockerfile
php82:
extends:
file: docker-compose.base.yml
service: php-fpm
build:
dockerfile: php82.Dockerfile
workspace74:
extends:
file: docker-compose.base.yml
@ -31,3 +37,9 @@ services:
service: workspace
build:
dockerfile: workspace81.Dockerfile
workspace82:
extends:
file: docker-compose.base.yml
service: workspace
build:
dockerfile: workspace82.Dockerfile

View File

@ -21,7 +21,13 @@ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
pecl install xdebug-2.5.5; \
elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
pecl install xdebug-3.1.6; \
if [ $(php -r "echo PHP_MINOR_VERSION;") = "1" ]; then \
pecl install xdebug-3.1.6; \
elif [ $(php -r "echo PHP_MINOR_VERSION;") = "2" ]; then \
pecl install xdebug-3.3.1; \
else \
pecl install xdebug; \
fi \
else \
pecl install xdebug-2.9.8; \
fi && \

View File

@ -0,0 +1,7 @@
# syntax = edrevo/dockerfile-plus
FROM php:8.2-fpm
INCLUDE+ ./php.base.Dockerfile
RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
&& docker-php-ext-install -j$(nproc) gd

View File

@ -158,7 +158,13 @@ RUN if [ ${INSTALL_S3_MINIO_CLIENT} = true ]; then \
RUN if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
pecl install xdebug-2.5.5; \
elif [ $(php -r "echo PHP_MAJOR_VERSION;") = "8" ]; then \
pecl install xdebug-3.1.6; \
if [ $(php -r "echo PHP_MINOR_VERSION;") = "1" ]; then \
pecl install xdebug-3.1.6; \
elif [ $(php -r "echo PHP_MINOR_VERSION;") = "2" ]; then \
pecl install xdebug-3.3.1; \
else \
pecl install xdebug; \
fi \
else \
pecl install xdebug-2.9.8; \
fi && \

View File

@ -0,0 +1,9 @@
# syntax = edrevo/dockerfile-plus
FROM laradock/workspace:latest-8.2
ARG PHP_VERSION=8.2
ENV PHP_VERSION ${PHP_VERSION}
INCLUDE+ ./workspace.base.Dockerfile
INCLUDE+ ./composer.Dockerfile
INCLUDE+ ./xdebug3.Dockerfile